92 lines
4.8 KiB
HTML
92 lines
4.8 KiB
HTML
{{- if eq .Kind "taxonomyTerm" }}
|
|
{{- range $key, $value := .Data.Terms.ByCount }}
|
|
{{- $.Scratch.Add "most_used" (slice $value.Name) }}
|
|
{{- end }}
|
|
{{- if not ($.Scratch.Get "most_used") }}
|
|
{{- $description := printf "A full overview of all pages with %s, ordered by %s" .Data.Plural .Data.Singular | truncate 180 }}
|
|
{{- $.Scratch.Set "Description" $description }}
|
|
{{- else }}
|
|
{{- $description := printf "A full overview of all pages with %s, ordered by %s, such as: %s" .Data.Plural .Data.Singular ( delimit ( $.Scratch.Get "most_used" ) ", " ", and " ) | truncate 180 }}
|
|
{{- $.Scratch.Set "Description" $description }}
|
|
{{- end }}
|
|
|
|
{{- $title := printf "Overview of all pages with %s, ordered by %s" .Data.Plural .Data.Singular }}
|
|
{{- $.Scratch.Set "Title" $title }}
|
|
{{- else if eq .Kind "taxonomy" }}
|
|
{{- $description := printf "Overview of all pages with the %s #%s, such as: %s" .Data.Singular $.Title ( index .Pages 0).Title | truncate 160 }}
|
|
{{- $.Scratch.Set "Description" $description }}
|
|
|
|
{{- $title := printf "Overview of all pages with the %s #%s" .Data.Singular $.Title }}
|
|
{{- $.Scratch.Set "Title" $title }}
|
|
{{- else }}
|
|
{{- $.Scratch.Set "Description" ( .Description | default .Params.subtitle | default .Summary ) }}
|
|
{{- $.Scratch.Set "Title" ( .Title | default .Site.Title ) }}
|
|
{{- end }}
|
|
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
|
<!-- Site Title, Description, Author, and Favicon -->
|
|
{{- with ($.Scratch.Get "Title") }}
|
|
<title>{{ . }}{{- if ne . $.Site.Title }} - {{ $.Site.Title }}{{- end}}</title>
|
|
{{- end }}
|
|
{{- with ($.Scratch.Get "Description") }}
|
|
<meta name="description" content="{{ . }}">
|
|
{{- end }}
|
|
{{- with .Site.Author.name }}
|
|
<meta name="author" content="{{ . }}"/>
|
|
{{- end }}
|
|
{{- partial "seo/main.html" . }}
|
|
{{- with .Site.Params.favicon }}
|
|
<link href='{{ . | absURL }}' rel='icon' type='image/x-icon'/>
|
|
{{- end -}}
|
|
<!-- Hugo Version number -->
|
|
{{ hugo.Generator -}}
|
|
<!-- Links and stylesheets -->
|
|
<link rel="alternate" href="{{ "index.xml" | absLangURL }}" type="application/rss+xml" title="{{ .Site.Title }}">
|
|
|
|
{{- if .Site.Params.selfHosted -}}
|
|
<link rel="stylesheet" href="{{ "css/katex.min.css" | absURL }}" />
|
|
<link rel="stylesheet" href="{{ "fontawesome/css/all.css" | absURL }}" />
|
|
<link rel="stylesheet" href="{{ "css/bootstrap.min.css" | absURL }}" />
|
|
{{- else -}}
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.0/katex.min.css" integrity="sha512-Yfxo7zXGaQYyzWNxz8r4s8axNfG4jS3dips8p2HA/wNWmuapakkQiki+/XA3o3Ol+i8WI03cRJVDDUElEtED6g==" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
{{- end -}}
|
|
|
|
<link rel="stylesheet" href="{{ "css/main.css" | absURL }}" />
|
|
|
|
{{- if .Site.Params.staticman -}}
|
|
<link rel="stylesheet" href="{{ "css/staticman.css" | absURL }}" />
|
|
{{- end -}}
|
|
|
|
{{- if .Site.Params.selfHosted -}}
|
|
<link rel="stylesheet" href="{{ "css/fonts.css" | absURL }}" />
|
|
{{- else -}}
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic" />
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800" />
|
|
{{- end -}}
|
|
|
|
{{- if .Site.Params.useHLJS }}
|
|
<link rel="stylesheet" href="{{ "css/highlight.min.css" | absURL }}" />
|
|
{{- else -}}
|
|
<link rel="stylesheet" href="{{ "css/syntax.css" | absURL }}" />
|
|
{{- end -}}
|
|
<link rel="stylesheet" href="{{ "css/codeblock.css" | absURL }}" />
|
|
|
|
{{- if .Site.Params.staticman.recaptcha -}}
|
|
<script src='https://www.google.com/recaptcha/api.js'></script>
|
|
{{- end -}}
|
|
|
|
{{- if .Site.Params.selfHosted -}}
|
|
<link rel="stylesheet" href="{{ "css/photoswipe.min.css" | absURL }}" />
|
|
<link rel="stylesheet" href="{{ "css/photoswipe.default-skin.min.css" | absURL }}" />
|
|
{{- else -}}
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.3/photoswipe.min.css" integrity="sha512-yxWNfGm+7EK+hqP2CMJ13hsUNCQfHmOuCuLmOq2+uv/AVQtFAjlAJO8bHzpYGQnBghULqnPuY8NEr7f5exR3Qw==" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/4.1.3/default-skin/default-skin.min.css" integrity="sha512-Rck8F2HFBjAQpszOB9Qy+NVLeIy4vUOMB7xrp46edxB3KXs2RxXRguHfrJqNK+vJ+CkfvcGqAKMJTyWYBiBsGA==" crossorigin="anonymous">
|
|
{{- end -}}
|
|
|
|
{{- partial "head_custom.html" . }}
|
|
{{ template "_internal/google_analytics_async.html" . }}
|