Merge branch 'main' into style/herman

This commit is contained in:
Caio Lente 2024-03-04 16:16:35 -03:00
commit d48d738e24
No known key found for this signature in database
GPG Key ID: E66D381776EFC03A
2 changed files with 8 additions and 8 deletions

View File

@ -26,7 +26,7 @@ git submodule add https://github.com/clente/hugo-bearcub themes/hugo-bearcub
To finish off, append a line to the site configuration file: To finish off, append a line to the site configuration file:
```sh ```sh
echo 'theme = "hugo-bearcub"' >> config.toml echo 'theme = "hugo-bearcub"' >> hugo.toml
``` ```
## Features ## Features
@ -85,8 +85,8 @@ have to think about it again. My `_headers` file, for example, looks like this:
### Multilingual ### Multilingual
If you need to write a blog that supports more than one language, **Bear Cub** If you need to write a blog that supports more than one language, **Bear Cub**
has you covered! Check out the demo's [`config.toml` has you covered! Check out the demo's [`hugo.toml`
file](https://github.com/clente/hugo-bearcub/blob/main/exampleSite/config.toml) file](https://github.com/clente/hugo-bearcub/blob/main/exampleSite/hugo.toml)
for a sample of how you can setup multilingual support. for a sample of how you can setup multilingual support.
By default, the theme creates a translation button that gets disabled when the By default, the theme creates a translation button that gets disabled when the
@ -122,9 +122,9 @@ already implemented:
`style: "{custom_css}.css"` in the [front `style: "{custom_css}.css"` in the [front
matter](https://gohugo.io/content-management/front-matter/) of said page. matter](https://gohugo.io/content-management/front-matter/) of said page.
- Conditional CSS (EXPERIMENTAL): since **Bear Cub** does syntax highlighting - Conditional CSS (EXPERIMENTAL): since **Bear Cub** does syntax highlighting
without inline styles (see `config.toml` for more information), it only load without inline styles (see `hugo.toml` for more information), it only load its
its `syntax.css` if, and only if, a code block is actually present in the `syntax.css` if, and only if, a code block is actually present in the current
current page. page.
- Dynamic social card generation (EXPERIMENTAL): if you don't add preview images - 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 to a post, this template will generate one based on the title. You can see an
example below. example below.
@ -133,8 +133,8 @@ already implemented:
## Configuration ## Configuration
**Bear Cub** can be customized with a `config.toml` file. Check out the **Bear Cub** can be customized with a `hugo.toml` file. Check out the
[configuration](https://github.com/clente/hugo-bearcub/blob/main/exampleSite/config.toml) [configuration](https://github.com/clente/hugo-bearcub/blob/main/exampleSite/hugo.toml)
of the [demo](https://clente.github.io/hugo-bearcub/) for more information. of the [demo](https://clente.github.io/hugo-bearcub/) for more information.
```toml ```toml