Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions themes/microcks/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
<meta charset="utf-8">
<meta charset="utf-8" />
<title>{{.Title | default site.Title}}</title>

{{- if .Params.canonical }}
<link rel="canonical" href="{{ .Params.canonical }}" />
{{- else }}
<link rel="canonical" href="{{ .Permalink }}" />
{{- end -}}

<meta
name="description"
content="{{ with .Description }}{{ . }}{{ else }}{{ with .Summary }}{{ . }}{{ else }}{{ site.Params.description }}{{ end }}{{ end }}"
/>

{{- if .Keywords }}
<meta name="keywords" content="{{ range .Keywords }}{{ . }},{{ end }}" />
{{- end }} {{- if .Params.author }}
<meta name="author" content="{{ .Params.author }}" />
{{- end }}

<!-- responsive meta -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=5"
/>

<meta name="theme-name" content="bigspring-hugo" />

Expand All @@ -16,7 +36,10 @@
{{ partialCached "site-verifications.html" . }}

<!-- opengraph and twitter card -->
{{ partial "basic-seo.html" . }}
{{ partial "basic-seo.html" . }} {{- if and .IsPage (not .Draft) -}} {{- if
templates.Exists "partials/single.jsonld" -}} {{- partial "single.jsonld" . -}}
{{- else if fileExists "layouts/_default/single.jsonld" -}} {{- partial
"_default/single.jsonld" . -}} {{- end -}} {{- end -}}

<!-- custom script -->
{{ partialCached "custom-script.html" . }}
Expand All @@ -37,4 +60,4 @@
{{ partialCached "plausible-analytics.html" . }}

<!-- Counter Analytics -->
{{ partialCached "counter-analytics.html" . }}
{{ partialCached "counter-analytics.html" . }}
Loading