diff --git a/README.md b/README.md index 701d677..14755bf 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,11 @@ already implemented: without inline styles (see `hugo.toml` for more information), it only load its `syntax.css` if, and only if, a code block is actually present in the current page. +- Alternative "Herman" style (EXPERIMENTAL): if you want to check out a more + modern CSS style, you can change the `themeStyle` parameter to `"herman"` in + order to activate [Herman Martinus's](https://herman.bearblog.dev/) version of + the [Blogster Minimal](https://blogster-minimal.netlify.app/) theme for + [Astro](https://astro.build/). - 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. @@ -203,6 +208,12 @@ enableRobotsTXT = true # have the theme simply not show any link hideUntranslated = false + # (EXPERIMENTAL) This theme has two options for its CSS styles: "original" and + # "herman". The former is what you see on Bear Cub's demo (an optimized + # version of Hugo Bear Blog), while the latter has a more modern look based on + # Herman Martinus's version of the Blogster Minimal theme for Astro. + themeStyle = "original" + # (EXPERIMENTAL) This theme is capable of dynamically generating social cards # for posts that don't have `images` defined in their front matter; By setting # `generateSocialCard` to false, you can prevent this behavior. For more diff --git a/assets/style.css b/assets/original.css similarity index 100% rename from assets/style.css rename to assets/original.css diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index 3c8b0d0..c037e60 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -63,6 +63,12 @@ enableRobotsTXT = true # have the theme simply not show any link hideUntranslated = false + # (EXPERIMENTAL) This theme has two options for its CSS styles: "original" and + # "herman". The former is what you see on Bear Cub's demo (an optimized + # version of Hugo Bear Blog), while the latter has a more modern look based on + # Herman Martinus's version of the Blogster Minimal theme for Astro. + themeStyle = "original" + # (EXPERIMENTAL) This theme is capable of dynamically generating social cards # for posts that don't have `images` defined in their front matter; By setting # `generateSocialCard` to false, you can prevent this behavior. For more diff --git a/images/social_card.webp b/images/social_card.webp index 43ae186..24bf927 100644 Binary files a/images/social_card.webp and b/images/social_card.webp differ diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 475d6f9..294749a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,7 +11,7 @@ {{- partial "seo_tags.html" . -}} - {{ $style := resources.Get "style.css" | minify }} + {{ $style := print (default "original" .Site.Params.themeStyle) ".css" | resources.Get | minify }} {{ if (.Page.Store.Get "hasCodeBlock") }}