2018-07-24 21:36:09 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
{{ with .Title }}<title>{{ . }}</title>{{ end }}
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<meta name="robots" content="all,follow">
|
|
|
|
<meta name="googlebot" content="index,follow,snippet,archive">
|
|
|
|
|
|
|
|
<meta name="description" content="{{ .Site.Title }} - {{ .Site.Title }}">
|
|
|
|
|
|
|
|
{{ if .Keywords }}
|
|
|
|
<meta content="{{ delimit .Keywords ", " }}" name="keywords">
|
|
|
|
{{ else if .Params.tags }}
|
|
|
|
<meta content="{{ delimit .Params.tags ", " }}" name="keywords">
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<!-- opengraph meta -->
|
|
|
|
<!-- see https://github.com/nozzle/hugo-snippets/blob/master/layouts/partials/head/seo/open_graph.html -->
|
|
|
|
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:title">
|
|
|
|
<meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:description">
|
|
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
|
|
|
<meta property="og:type" content="{{ if .Params.type }}{{ .Params.type }}{{ else }}website{{ end }}" />
|
|
|
|
{{ if .Params.image }}
|
|
|
|
<meta property="og:image" content="{{.Site.BaseURL}}{{ .Params.image }}" />
|
|
|
|
{{ end }}
|
|
|
|
<!-- zie sidebar.html, zelfde logica gebruikt -->
|
|
|
|
{{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "articles") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
|
|
|
|
|
|
|
{{ if $related }}
|
|
|
|
{{ range $related }}
|
|
|
|
<meta property="og:see_also" content="{{ .Permalink }}" />
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<meta property="article:published_time" content="{{ .PublishDate }}" />
|
|
|
|
<meta property="article:modified_time" content="{{ .Date }}" />
|
|
|
|
<meta property="article:section" content="{{ .Section }}" />
|
|
|
|
{{ with .Params.tags }}{{ range first 6 . }}
|
|
|
|
<meta property="article:tag" content="{{ . }}" />
|
|
|
|
{{ end }}{{ end }}
|
|
|
|
<!-- end og -->
|
|
|
|
|
2018-07-25 10:07:03 +02:00
|
|
|
<!-- structured data -->
|
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context" : "http://schema.org",
|
|
|
|
"@type" : "BlogPosting",
|
|
|
|
"mainEntityOfPage": {
|
|
|
|
"@type": "WebPage",
|
|
|
|
"@id": "{{ .Site.BaseURL }}"
|
|
|
|
},
|
|
|
|
"articleSection" : "{{ .Section }}",
|
|
|
|
"name" : "{{ .Title }}",
|
|
|
|
"headline" : "{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}",
|
|
|
|
"description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
|
|
|
|
"inLanguage" : "{{ .Site.LanguageCode }}",
|
|
|
|
{{ if .Params.image }}
|
|
|
|
"image": "{{.Site.BaseURL}}{{ .Params.image }}",
|
|
|
|
{{ end }}
|
|
|
|
"author" : {
|
|
|
|
"@type": "Person",
|
|
|
|
"name": "{{ .Site.Author.name }}"
|
|
|
|
},
|
|
|
|
"publisher": {
|
|
|
|
"@type": "Organization",
|
|
|
|
"name": "Brain Baking",
|
|
|
|
"logo": {
|
|
|
|
"@type": "ImageObject",
|
2018-07-25 10:25:54 +02:00
|
|
|
"url": "https://brainbaking.com/img/avatar-icon.png",
|
|
|
|
"width": "150",
|
|
|
|
"height": "150"
|
2018-07-25 10:07:03 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"accountablePerson" : "{{ .Site.Author.name }}",
|
|
|
|
"copyrightHolder" : "{{ .Site.Author.name }}",
|
|
|
|
"copyrightYear" : "{{ .Date.Format "2006" }}",
|
|
|
|
"datePublished": "{{ .Date }}",
|
2018-07-30 13:36:34 +02:00
|
|
|
"dateModified" : "{{ .Lastmod }}",
|
2018-07-25 10:07:03 +02:00
|
|
|
"url" : "{{ .Permalink }}",
|
|
|
|
"wordCount" : "{{ .WordCount }}",
|
|
|
|
{{ if .Keywords }}
|
|
|
|
"keywords" : [ {{ range .Keywords }}"{{ . }}",{{ end }}"{{ .Title }}" ]
|
|
|
|
{{ else if .Params.tags }}
|
|
|
|
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"{{ .Title }}" ]
|
2018-07-30 13:36:34 +02:00
|
|
|
{{ else }}
|
|
|
|
"keywords": [ "{{ .Title }}" ]
|
2018-07-25 10:07:03 +02:00
|
|
|
{{ end }}
|
|
|
|
}
|
|
|
|
</script>
|
2018-07-24 21:36:09 +02:00
|
|
|
|
2018-08-01 21:28:15 +02:00
|
|
|
<style>
|
|
|
|
body, .content-column-content, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
|
|
|
|
font-family: '{{ .Site.Params.font }}', sans-serif !important;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2018-07-24 21:36:09 +02:00
|
|
|
<link rel="stylesheet" href="{{ "css/bootstrap.min.css" | absURL }}">
|
2018-08-01 21:28:15 +02:00
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{ .Site.Params.font }}">
|
2018-07-24 21:36:09 +02:00
|
|
|
<link rel="stylesheet" href="{{ "css/font-awesome.min.css" | absURL }}">
|
2020-05-25 11:16:11 +02:00
|
|
|
<link href="{{ "css/style.default.css" | absURL }}" rel="stylesheet" id="theme-stylesheet">
|
|
|
|
{{- $options := (dict "targetPath" "css/styles.css" "outputStyle" "compressed" "enableSourceMap" "true") -}}
|
|
|
|
{{- $styles := resources.Get "sass/main.sass" | resources.ExecuteAsTemplate "main.sass" . | resources.ToCSS $options | resources.Fingerprint "sha512" }}
|
|
|
|
<link rel = 'stylesheet' href = '{{ $styles.Permalink }}' integrity = '{{ $styles.Data.Integrity }}'>
|
2018-07-24 21:36:09 +02:00
|
|
|
|
|
|
|
<link rel="shortcut icon" href="{{ "img/favicon.png" | absURL }}">
|
2020-04-11 09:14:42 +02:00
|
|
|
{{ with .OutputFormats.Get "RSS" }}
|
|
|
|
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="Jefklak's Codex" />
|
|
|
|
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="Jefklak's Codex" />
|
|
|
|
{{ end }}
|
2020-05-25 09:17:26 +02:00
|
|
|
{{- if (ne hugo.Environment "development") }}
|
|
|
|
{{ template "_internal/google_analytics.html" . }}
|
|
|
|
{{- end }}
|