diff options
author | Caio Lente <7017340+clente@users.noreply.github.com> | 2023-10-27 19:30:53 -0300 |
---|---|---|
committer | Caio Lente <7017340+clente@users.noreply.github.com> | 2023-10-27 19:30:53 -0300 |
commit | a3f09559e465ea1255baf83345fc7fd1b2da62b3 (patch) | |
tree | f12cfdc10beeb25ad0b6a7324a85ea988f1abccc /README.md | |
parent | 95746b151da25f80068d0fd70435b40906e53824 (diff) | |
download | hugo-bearcub-a3f09559e465ea1255baf83345fc7fd1b2da62b3.tar.gz hugo-bearcub-a3f09559e465ea1255baf83345fc7fd1b2da62b3.tar.bz2 |
Conditional CSS
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -119,6 +119,10 @@ already implemented: writing the CSS you need in `assets/{custom_css}.css` and then including `style: "{custom_css}.css"` in the [front matter](https://gohugo.io/content-management/front-matter/) of said page. +- Conditional CSS (EXPERIMENTAL): since **Bear Cub** does syntax highlighting + without inline styles (see `config.toml` for more information), it only load + its `syntax.css` if, and only if, a code block is actually present in the + current page. - Dynamic social card generation (EXPERIMENTAL): if you don't add preview images to a post, this template will generate one based on the title. You can see an example below. |