diff options
author | Yauhen Shulitski <jsnjack@gmail.com> | 2018-09-28 14:44:13 +0300 |
---|---|---|
committer | Yauhen Shulitski <jsnjack@gmail.com> | 2018-09-28 14:44:18 +0300 |
commit | 79c92141f6fba848ba5ed09ca6b8cc7f449863af (patch) | |
tree | 23735b76819a0f2c000575ef6a0cd3b2ab2af416 | |
parent | e8f9135d32cbc3fdceffb9feb2b96b2e132a2626 (diff) |
:m: Add option to disable original styles
-rw-r--r-- | layouts/partials/head.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 14e7ada..ae1eb5b 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,9 +19,11 @@ <!-- RSS --> <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" /> - {{ $scss := resources.Get "changelog.scss" }} - {{ $style := $scss | resources.ToCSS | resources.Minify }} - <link rel="stylesheet" href="{{ $style.Permalink }}"> + {{ if not .Site.Params.disableOriginalStyles -}} + {{ $scss := resources.Get "changelog.scss" }} + {{ $style := $scss | resources.ToCSS | resources.Minify }} + <link rel="stylesheet" href="{{ $style.Permalink }}"> + {{- end}} {{ range .Site.Params.customCSS -}} <link rel="stylesheet" href="{{ . | absURL }}"> |