Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Gebauer <agebauer@hashicorp.com>2020-09-13 22:00:15 +0300
committerAustin Gebauer <agebauer@hashicorp.com>2020-09-13 22:00:15 +0300
commit2d439092d6207d3e5d2ae8cf5c2136bc42e26b5e (patch)
treece6a5d0ded5020eac26fe3c898418a92eac090a4
parent4fd4dd75a4738b6ee0ab712531cbaf1ace3664b2 (diff)
makes loading of custom css optional
-rw-r--r--layouts/partials/head.html2
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>