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

github.com/edavidaja/docter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 1cdf055..9dab550 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -7,7 +7,9 @@
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/normalize.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600&display=swap" rel="stylesheet">
- <link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/main.css">
+ {{ $sassTemplate := resources.Get "sass/template.scss" }}
+ {{ $style := $sassTemplate | resources.ExecuteAsTemplate "main.scss" . | toCSS | minify | fingerprint }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}" integrity="{{ $style.Data.Integrity }}">
<link rel="stylesheet" href="{{ .Site.BaseURL }}assets/css/syntax.css">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>