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

github.com/cristianmarint/sicily-hugo-theme.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.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..d364778
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,33 @@
+<head>
+ <meta charset="utf-8">
+ <title>{{ .Title }}</title>
+
+ {{ "<!-- mobile responsive meta -->" | safeHTML }}
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+ <meta name="description" content="{{ with .Params.Description }}{{ . }}{{ else }}{{ with site.Params.description }}{{ . }}{{ end }}{{ end }}">
+
+ {{ with site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
+ {{ hugo.Generator }}
+
+ {{ "<!-- plugins -->" | safeHTML }}
+ {{ range site.Params.plugins.css }}
+ <link rel="stylesheet" href="{{ .link | absURL }}">
+ {{ end }}
+
+ {{ "<!-- Main Stylesheet -->" | safeHTML }}
+ {{ $style := resources.Get "scss/style.scss" | toCSS | minify }}
+ <link href="{{ $style.Permalink }}" rel="stylesheet" media="screen"/>
+
+ {{ "<!--Favicon-->" | safeHTML }}
+ <link rel="shortcut icon" href="{{ `images/logo.png` | absURL }}" type="image/x-icon">
+ <link rel="icon" href="{{ `images/logo.png` | absURL }}" type="image/x-icon">
+
+
+ {{ with .Params.Image }}
+ <meta property="og:image" content="{{ . | absURL }}" />
+ {{ end }}
+ {{ template "_internal/opengraph.html" . }}
+ {{ template "_internal/google_analytics.html" . }}
+ {{ template "_internal/google_analytics_async.html" . }}
+
+</head> \ No newline at end of file