2018-06-15 14:01:11 +02:00
|
|
|
|
<link rel="stylesheet" href="{{ "css/brainbaking.css" | absURL }}">
|
2018-07-25 09:47:59 +02:00
|
|
|
|
|
|
|
|
|
<!-- meta data tags, open graph -->
|
2018-07-24 21:43:40 +02:00
|
|
|
|
{{ if .Params.subtitle }}
|
|
|
|
|
<meta name="description" content="{{ .Title }} - {{ .Params.subtitle }}">
|
|
|
|
|
<meta content="{{ .Title }}" property="og:title">
|
|
|
|
|
<meta content="{{ .Params.subtitle }}" property="og:description">
|
|
|
|
|
{{ else }}
|
|
|
|
|
<meta name="description" content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}">
|
|
|
|
|
<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">
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ if .Keywords }}
|
|
|
|
|
<meta content="{{ delimit .Keywords ", " }}" name="keywords">
|
|
|
|
|
{{ else if .Params.tags }}
|
|
|
|
|
<meta content="{{ delimit .Params.tags ", " }}" name="keywords">
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
<meta property="og:url" content="{{ .Permalink }}" />
|
|
|
|
|
<meta property="og:type" content="{{ if .Params.type }}{{ .Params.type }}{{ else }}website{{ end }}" />
|
|
|
|
|
{{ if .Params.bigimg }}
|
|
|
|
|
<meta property="og:image" content="{{.Site.BaseURL}}{{ .Params.bigimg }}" />
|
|
|
|
|
{{ end }}
|
|
|
|
|
<!-- zie sidebar.html, zelfde logica gebruikt -->
|
|
|
|
|
{{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "post") ".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-04-27 12:00:07 +02:00
|
|
|
|
|
2018-07-25 09:47:59 +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 }}",
|
2018-07-30 13:27:15 +02:00
|
|
|
|
{{ if .Params.subtitle }}
|
|
|
|
|
"headline" : "{{ .Params.subtitle }}",
|
|
|
|
|
{{ else }}
|
|
|
|
|
"headline" : "{{ .Title }}",
|
|
|
|
|
{{ end }}
|
2018-07-25 09:47:59 +02:00
|
|
|
|
"description" : "{{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}",
|
2018-07-30 13:33:06 +02:00
|
|
|
|
{{ if isset .Params "language" }}
|
|
|
|
|
"inLanguage" : "{{ .Params.language }}",
|
|
|
|
|
{{ else if eq "essays" .Section }}
|
|
|
|
|
"inLanguage" : "nl-BE",
|
|
|
|
|
{{ else if eq "teaching" .Section }}
|
|
|
|
|
"inLanguage" : "nl-BE",
|
|
|
|
|
{{ else }}
|
|
|
|
|
"inLanguage" : "en-US",
|
|
|
|
|
{{ end }}
|
2018-07-25 09:47:59 +02:00
|
|
|
|
{{ if .Params.bigimg }}
|
|
|
|
|
"image": "{{.Site.BaseURL}}{{ .Params.bigimg }}",
|
2018-07-30 13:27:15 +02:00
|
|
|
|
{{ else }}
|
|
|
|
|
"image": "{{.Site.BaseURL}}img/avatar-icon.png",
|
2018-07-25 09:47:59 +02:00
|
|
|
|
{{ end }}
|
|
|
|
|
"author" : {
|
|
|
|
|
"@type": "Person",
|
|
|
|
|
"name": "{{ .Site.Author.name }}"
|
2018-07-30 13:27:15 +02:00
|
|
|
|
},
|
2018-07-25 09:47:59 +02:00
|
|
|
|
"publisher": {
|
|
|
|
|
"@type": "Organization",
|
|
|
|
|
"name": "{{ .Site.Title }}",
|
|
|
|
|
"logo": {
|
|
|
|
|
"@type": "ImageObject",
|
|
|
|
|
"url": "{{.Site.BaseURL}}img/avatar-icon.png"
|
|
|
|
|
}
|
2018-07-30 13:27:15 +02:00
|
|
|
|
},
|
2018-07-25 09:47:59 +02:00
|
|
|
|
"accountablePerson" : "{{ .Site.Author.name }}",
|
|
|
|
|
"copyrightHolder" : "{{ .Site.Author.name }}",
|
|
|
|
|
"copyrightYear" : "{{ .Date.Format "2006" }}",
|
2018-07-30 13:27:15 +02:00
|
|
|
|
"datePublished": "{{ if isset .Params "date" }}{{ .Date }}{{ else }}{{ .Lastmod }}{{ end }}",
|
|
|
|
|
"dateModified" : "{{ .Lastmod }}",
|
2018-07-25 09:47:59 +02:00
|
|
|
|
"url" : "{{ .Permalink }}",
|
|
|
|
|
"wordCount" : "{{ .WordCount }}",
|
|
|
|
|
"keywords" : [ {{ if isset .Params "tags" }}{{ range .Params.tags }}"{{ . }}",{{ end }}{{ end }}"{{ .Title }}", "{{ .Section }}" ]
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
2018-04-28 20:39:39 +02:00
|
|
|
|
{{ template "_internal/google_analytics_async.html" . }}
|