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

github.com/miguelsimoni/hugo-initio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head/head.html')
-rw-r--r--layouts/partials/head/head.html18
1 files changed, 5 insertions, 13 deletions
diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html
index 7fa4613..1b98793 100644
--- a/layouts/partials/head/head.html
+++ b/layouts/partials/head/head.html
@@ -1,4 +1,3 @@
-
<title>{{ .Title }}</title>
<link rel="shortcut icon" href="{{ .Site.BaseURL }}{{ .Site.Params.favicon }}">
@@ -11,18 +10,11 @@
<!-- Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Alice|Open+Sans:400,300,700">
- <!-- Custom styles -->
- <link rel="stylesheet" href="{{ .Site.BaseURL }}css/styles.css">
-
- {{ range .Site.Params.customCSS -}}
- {{ $style := resources.Get . }}
- <link rel="stylesheet" href="{{ $style.RelPermalink }}" integrity="{{ $style.Data.Integrity }}" crossorigin="anonymous" media="screen">
- {{- end }}
+ {{ $styles := resources.Get "css/styles.css" }}
+ {{ $css := $styles | resources.Minify | resources.Fingerprint "sha512" }}
+ <link rel="stylesheet" href="{{ $css.Permalink }}" integrity="{{ $css.Data.Integrity }}">
<!-- Share this -->
{{ if .Site.Params.customsharethis }}
- <script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property={{ .Site.Params.sharethis.property }}&product=custom-share-buttons"></script>
- {{ end }}
-
-</head>
-
+ <script type="text/javascript" src="//platform-api.sharethis.com/js/sharethis.js#property={{ .Site.Params.sharethis.property }}&product=custom-share-buttons"></script>
+ {{ end }}