escalate / hugo-split-theme

Port of Split template by One Page Love to Hugo
https://themes.gohugo.io/themes/hugo-split-theme/
Other
76 stars 88 forks source link

Apply custom CSS #20

Closed bernhard-hofmann closed 1 year ago

bernhard-hofmann commented 1 year ago

How can I extend or replace styles in my project without modifying this theme?

I imagine a top level parameter might allow a custom CSS file like this:

[params]
  customCss = "css/custom.css"

Am I on the right track? (Hugo newbie here)

Would you like a PR for this change?

bernhard-hofmann commented 1 year ago

I misunderstood how custom CSS is applied. I see this feature is already enabled via the configuration option

  [params.custom.css]
  enable = true

And then the style.css file in static/css is included in the head after the split stylesheet.