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

github.com/runningstream/hugograyscale.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.html47
1 files changed, 23 insertions, 24 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 990277e..488318a 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,29 +1,28 @@
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <meta name="description" content="{{ $.Param "description" }}">
- <meta name="author" content="{{ $.Param "author" }}">
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+{{ $description := $.Param "description" }}
+{{- with $description }}<meta name="description" content="{{ . }}">{{ end }}
+{{ $author := .Params.author.name | default .Site.Author.name }}
+<meta name="author" content="{{ $author }}">
- <title>{{- $.Param "title" -}}</title>
- <link rel="icon" href="/favicon.ico">
+<title>{{- $.Param "title" -}}</title>
+<link rel="icon" href="/favicon.ico">
- <!-- SEO Prefs -->
- <meta name="robots" content="index,follow">
- <meta name="referrer" content="origin-when-cross-origin">
- {{- if isset .Site.Params "googlesiteverification" -}}<meta name="google-site-verification" content="{{ .Site.Params.googleSiteVerification }}">{{- end -}}
- {{- if isset .Site.Params "msvalidate" -}}<meta name="msvalidate.01" content="{{ .Site.Params.msValidate }}">{{- end -}}
+<meta name="robots" content="index,follow">
+<meta name="referrer" content="origin-when-cross-origin">
+{{- with .Site.Params.googlesiteverification }}
+<meta name="google-site-verification" content="{{ . }}">{{ end }}
+{{- with .Site.Params.msvalidate }}
+<meta name="msvalidate.01" content="{{ . }}">{{ end }}
+{{ hugo.Generator }}
+{{ template "_internal/opengraph.html" . }}
+{{ template "_internal/twitter_cards.html" . }}
- <!-- Site Generator -->
- <meta name="generator" content="Hugo {{ hugo.Version }}">
+<link href="{{ "vendor/bootstrap/css/bootstrap.min.css" | absURL }}" rel="stylesheet">
+<link href="{{ "vendor/font-awesome/css/font-awesome.min.css" | absURL }}" rel="stylesheet" type="text/css">
+<link href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
+<link href='https://fonts.googleapis.com/css?family=Cabin:700' rel='stylesheet' type='text/css'>
- <!-- Bootstrap core CSS -->
- <link href="{{ "vendor/bootstrap/css/bootstrap.min.css" | absURL }}" rel="stylesheet">
+<link href="{{ "css/grayscale.css" | absURL }}" rel="stylesheet">
- <!-- Custom fonts for this template -->
- <link href="{{ "vendor/font-awesome/css/font-awesome.min.css" | absURL }}" rel="stylesheet" type="text/css">
- <link href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" rel="stylesheet" type="text/css">
- <link href='https://fonts.googleapis.com/css?family=Cabin:700' rel='stylesheet' type='text/css'>
-
- <!-- Custom styles for this template -->
- <link href="{{ "css/grayscale.css" | absURL }}" rel="stylesheet">
-
- {{ template "_internal/google_analytics_async.html" . }}
+{{ template "_internal/google_analytics_async.html" . }}