diff options
author | Yauhen Shulitski <jsnjack@gmail.com> | 2018-10-17 12:28:20 +0300 |
---|---|---|
committer | Yauhen Shulitski <jsnjack@gmail.com> | 2018-10-17 12:28:20 +0300 |
commit | afb492893456340c9bbe9f1a5738e08fc22216f5 (patch) | |
tree | 6163ee75602ec670620a19ecab24e67a6cf2801c | |
parent | 4898749d1356f6ab1841f860ac57d8509d7f5fe1 (diff) |
:m: Remove disableOriginalStyles parameter
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | layouts/partials/head.html | 8 |
2 files changed, 3 insertions, 6 deletions
@@ -57,7 +57,6 @@ A [Hugo](https://gohugo.io/) theme to display a changelog ``` [params] customCSS = ["css/styles.css"] # List of css files to include on the website. Reltive to the static/ folder - disableOriginalStyles = true # Do not include original CSS styles ``` # Development diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 1f81c9f..f102257 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,11 +19,9 @@ <!-- RSS --> <link href="{{ .RSSLink | relURL }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> - {{ if not .Site.Params.disableOriginalStyles -}} - {{ $scss := resources.Get "changelog.scss" }} - {{ $style := $scss | resources.ToCSS | resources.Minify }} - <link rel="stylesheet" href="{{ $style.RelPermalink }}"> - {{- end}} + {{ $scss := resources.Get "changelog.scss" }} + {{ $style := $scss | resources.ToCSS | resources.Minify }} + <link rel="stylesheet" href="{{ $style.RelPermalink }}"> {{ range .Site.Params.customCSS -}} <link rel="stylesheet" href="{{ . | relURL }}"> |