diff options
-rw-r--r-- | README.md | 11 | ||||
-rw-r--r-- | assets/original.css (renamed from assets/style.css) | 0 | ||||
-rw-r--r-- | exampleSite/hugo.toml | 6 | ||||
-rw-r--r-- | images/social_card.webp | bin | 35348 -> 19920 bytes | |||
-rw-r--r-- | layouts/_default/baseof.html | 2 |
5 files changed, 18 insertions, 1 deletions
@@ -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 index 3492237..3492237 100644 --- a/assets/style.css +++ b/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 Binary files differindex 43ae186..24bf927 100644 --- a/images/social_card.webp +++ b/images/social_card.webp 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" . -}} <meta name="referrer" content="no-referrer-when-downgrade" /> - {{ $style := resources.Get "style.css" | minify }} + {{ $style := print (default "original" .Site.Params.themeStyle) ".css" | resources.Get | minify }} <link href="{{ $style.RelPermalink }}" rel="stylesheet"> {{ if (.Page.Store.Get "hasCodeBlock") }} |