Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom css files to be loaded by configuration #376

Merged
merged 1 commit into from
Apr 14, 2020
Merged

Conversation

matalo33
Copy link
Contributor

@matalo33 matalo33 commented Mar 9, 2020

Previously adding custom css files would require the end user to copy
the header or footer partial into their overrides. They would then
need to maintain that partial into the future.

This config allows a user to provide a list of custom css files to load
into the theme, meaning they do not need to clone the partial.

[params]
  custom_css = ["css/foo.css", "css/bar.css"]

Inspiration taken from https://discourse.gohugo.io/t/how-to-override-css-classes-with-hugo/3033/4

@matalo33 matalo33 added the feature New Features label Mar 9, 2020
@matalo33 matalo33 added this to the v2.5.0 milestone Mar 9, 2020
@matalo33 matalo33 requested a review from matcornic March 9, 2020 15:54
Previously adding custom css files would require the end user to copy
the header or footer partial into their overrides. They would then
need to maintain that partial into the future.

This config allows a user to provide a list of custom css files to load
into the theme, meaning they do not need to clone the partial.

```
[params]
  custom_css = ["css/foo.css", "css/bar.css"]
```

Inspiration taken from https://discourse.gohugo.io/t/how-to-override-css-classes-with-hugo/3033/4
@matalo33 matalo33 merged commit d4abb3c into master Apr 14, 2020
@matalo33 matalo33 deleted the custom-css branch April 14, 2020 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant