diff options
author | Austin Gebauer <agebauer@hashicorp.com> | 2020-09-13 22:00:15 +0300 |
---|---|---|
committer | Austin Gebauer <agebauer@hashicorp.com> | 2020-09-13 22:00:15 +0300 |
commit | 2d439092d6207d3e5d2ae8cf5c2136bc42e26b5e (patch) | |
tree | ce6a5d0ded5020eac26fe3c898418a92eac090a4 | |
parent | 4fd4dd75a4738b6ee0ab712531cbaf1ace3664b2 (diff) |
makes loading of custom css optional
-rw-r--r-- | layouts/partials/head.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a7bfff9..92b2718 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -10,8 +10,10 @@ {{/* Adds custom styles capability */}} {{ $customTemplate := resources.Get "sass/custom.scss" }} + {{ if $customTemplate }} {{ $custom := $customTemplate | resources.ExecuteAsTemplate "css/custom.scss" . | toCSS | minify }} <link rel="stylesheet" href="{{ $custom.RelPermalink }}"> + {{ end }} {{ template "_internal/google_analytics.html" . }} </head> |