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

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorde-souza <43355143+de-souza@users.noreply.github.com>2019-08-22 01:47:11 +0300
committerde-souza <43355143+de-souza@users.noreply.github.com>2019-08-22 01:47:11 +0300
commit845aa539e5370d4cfe06e7cf7b028fde0fff53be (patch)
tree4f4f6023487e9fa9ee1ea61afd3f5245e9bd673f
parentcbdb947aa05e1bcd613d9bc923207b946897388b (diff)
Add auto-generated metadata to header (#9)
-rw-r--r--layouts/_default/baseof.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 1898c36..72edd52 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -6,7 +6,9 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="canonical" href="{{ .Permalink }}">
+ {{ template "_internal/schema.html" . }}
+ {{ template "_internal/opengraph.html" . }}
+ {{ template "_internal/twitter_cards.html" . }}
<title>
{{ if eq .Title site.Title }}
{{ site.Title }}
@@ -14,6 +16,7 @@
{{ with .Title }}{{ . }} | {{ end }}{{ site.Title }}
{{ end }}
</title>
+ <link rel="canonical" href="{{ .Permalink }}">
{{ range .AlternativeOutputFormats }}
{{ printf "<link rel=%q type=%q href=%q title=%q>" .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
{{ end }}