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

github.com/EmielH/stip-hugo.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.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..da2be99
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,37 @@
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ {{- if eq .URL "/" }}
+ <meta name="description" content="{{ .Site.Params.Description }}">
+ {{- else if .Description }}
+ <meta name="description" content="{{ .Description }}">
+ {{- end }}
+
+ <title>
+ {{- if eq .URL "/" }}
+ {{ .Site.Title }}
+ {{- else }}
+ {{ .Title }} &middot; {{ .Site.Title }}
+ {{- end }}
+ </title>
+
+ <!-- CSS -->
+ {{- $inServerMode := .Site.IsServer }}
+ {{- $cssTarget := "css/style.css" }}
+ {{- $cssOptions := cond ($inServerMode) (dict "targetPath" $cssTarget "enableSourceMap" true) (dict "targetPath" $cssTarget "outputStyle" "compressed") }}
+ {{- $style := resources.Get "scss/stip.scss" | resources.ExecuteAsTemplate "style.hallo.scss" . | toCSS $cssOptions }}
+ <link rel="stylesheet" href="{{ $style.RelPermalink }}">
+
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lora">
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400">
+ <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.2/css/all.css" integrity="sha384-/rXc/GQVaYpyDdyxK+ecHPVYJSN9bmVFBvjA/9eOB+pb3F2w2N6fc5qB9Ew5yIns" crossorigin="anonymous">
+
+ <!-- Favicon -->
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ "apple-touch-icon.png" | relURL }}">
+ <link rel="icon" type="image/png" sizes="32x32" href="{{ "favicon-32x32.png" | relURL }}">
+ <link rel="icon" type="image/png" sizes="16x16" href="{{ "favicon-16x16.png" | relURL }}">
+ <link rel="manifest" href="{{ "site.webmanifest" | relURL }}">
+
+ <!-- RSS -->
+ <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+</head>