summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-04-23 20:27:19 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-04-23 20:27:19 +0200
commitee7faef370442c5c91f0ba322bdcb4796aff3c29 (patch)
tree02e066fc8cf17060ed23118fc8a4cddcbdfd5659
parent5e908ed72fb3cb3936ea5945d37bf4f0ff1c1f77 (diff)
downloadgohugo-theme-ed-ee7faef370442c5c91f0ba322bdcb4796aff3c29.tar.gz
Amend page head
-rw-r--r--layouts/partials/head.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index e69de29..bb7e793 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -0,0 +1,15 @@
+<head prefix="og: http://ogp.me/ns#; dc: http://purl.org/dc/terms/#">
+ {{ $resource_url := print .Site.BaseURL | safeURL }}
+ <!-- Basic meta elements -->
+ <meta charset="utf-8">
+
+ <!-- Enable responsiveness on mobile devices -->
+ <meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no" />
+
+ <!-- Canonical link to help search engines -->
+ <link rel="canonical" href="{{ $resource_url }}">
+
+ {{ $title := print .Site.Title " | " .Title }}
+ {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
+ <title>{{ $title }}</title>
+</head>