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

github.com/h-enk/doks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head/seo.html')
-rw-r--r--layouts/partials/head/seo.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/layouts/partials/head/seo.html b/layouts/partials/head/seo.html
new file mode 100644
index 0000000..76bc26d
--- /dev/null
+++ b/layouts/partials/head/seo.html
@@ -0,0 +1,40 @@
+{{ if and (eq .Kind "section" "taxonomy" "taxonomyTerm") (ne .Section "blog" ) -}}
+<meta name="robots" content="noindex, noarchive">
+{{ else -}}
+ {{ with .Params.robots -}}
+ <meta name="robots" content="{{ . }}">
+ {{ else -}}
+ <meta name="robots" content="index, follow">
+ {{ end -}}
+{{ end -}}
+
+{{ if .IsHome -}}
+ <title>{{ .Site.Params.title }} {{ .Site.Params.titleSeparator }} {{ .Site.Params.titleAddition }}</title>
+{{ else -}}
+ <title>{{ .Title }} {{ .Site.Params.titleSeparator }} {{ .Site.Params.title }}</title>
+{{ end -}}
+
+{{ with .Description -}}
+ <meta name="description" content="{{ . }}">
+{{ else -}}
+ <meta name="description" content="{{ .Site.Params.description }}">
+{{ end -}}
+
+{{ with .Params.canonical -}}
+ <link rel="canonical" href="{{ . }}">
+{{ else -}}
+ <link rel="canonical" href="{{ .Permalink }}">
+{{ end -}}
+
+{{ template "_internal/twitter_cards.html" . -}}
+<meta name="twitter:site" content="{{ .Site.Params.twitterSite }}">
+<meta name="twitter:creator" content="{{ .Site.Params.twitterCreator }}">
+
+{{ template "_internal/opengraph.html" . -}}
+<meta property="og:locale" content="{{ .Site.Params.ogLocale }}">
+
+{{ range .AlternativeOutputFormats -}}
+ <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
+{{ end -}}
+
+{{ block "head/structured-data" . }}{{ partial "head/structured-data.html" . }}{{ end }}