2017-01-20 14:56:33 +01:00
|
|
|
{{ define "schema-dot-org" }}
|
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context": "http://schema.org",
|
|
|
|
"@type": "Blog",
|
2017-03-24 15:49:26 +01:00
|
|
|
{{- /* Google recommends the headline be no more than 110 characters */}}
|
2017-02-21 07:17:19 +01:00
|
|
|
"headline": "{{ substr .Site.Title 0 110 }}",
|
|
|
|
"url" : "{{ printf "%s" .Permalink }}",
|
2017-01-20 14:56:33 +01:00
|
|
|
"author": {
|
|
|
|
"@type": "Person",
|
2017-02-21 07:17:19 +01:00
|
|
|
"name": "{{ .Site.Params.author }}"
|
2017-01-20 14:56:33 +01:00
|
|
|
},
|
2017-03-24 15:49:26 +01:00
|
|
|
{{- $ISO8601 := "2006-01-02T15:04:05-07:00" }}
|
|
|
|
{{- if not .Date.IsZero }}
|
2019-06-13 00:07:36 +02:00
|
|
|
"dateModified": {{ .Date.Format $ISO8601 }},
|
2017-03-24 15:49:26 +01:00
|
|
|
{{- end }}
|
|
|
|
{{- /* all of the site's categories/tags, from Hugo's tpl/template_embedded.go */}}
|
2020-03-19 14:22:29 +01:00
|
|
|
"keywords": {{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}
|
2017-03-24 15:49:26 +01:00
|
|
|
{{- with .Site.Params.description -}}
|
2017-01-20 14:56:33 +01:00
|
|
|
,
|
2020-03-19 14:22:29 +01:00
|
|
|
"description": {{- . -}}
|
2017-03-24 15:49:26 +01:00
|
|
|
{{- end }}
|
2017-01-20 14:56:33 +01:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{{ end }}
|
|
|
|
|
2016-09-01 16:37:27 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
|
2017-04-03 05:54:42 +02:00
|
|
|
{{ $truncate := default true .Site.Params.truncate }}
|
2018-08-09 15:06:28 +02:00
|
|
|
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
|
2016-11-24 13:39:39 +01:00
|
|
|
{{ range $paginator.Pages }}
|
2017-04-03 05:54:42 +02:00
|
|
|
{{ if $truncate }}
|
2016-11-24 13:39:39 +01:00
|
|
|
{{ .Render "summary" }}
|
2017-04-03 05:54:42 +02:00
|
|
|
{{ else }}
|
|
|
|
{{ .Render "content" }}
|
|
|
|
{{ end }}
|
2016-11-24 13:39:39 +01:00
|
|
|
{{ end }}
|
2016-09-01 16:37:27 +02:00
|
|
|
|
2016-11-24 13:39:39 +01:00
|
|
|
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
2018-04-19 17:20:35 +02:00
|
|
|
{{ partial "pagination.html" . }}
|
2016-11-24 13:39:39 +01:00
|
|
|
{{ end }}
|
2016-11-24 13:33:56 +01:00
|
|
|
|
2016-09-01 16:37:27 +02:00
|
|
|
{{ end }}
|
2016-11-24 13:33:56 +01:00
|
|
|
|
|
|
|
{{- /* vim: set ts=2 sw=2 et: */}}
|