Merge partials for head and add logic so they can be added once in baseof instead of in each single and list template.

This commit is contained in:
Fredrik Jonsson 2019-07-05 13:14:02 +02:00
commit 9eea6f46a9

View file

@ -1,12 +1,3 @@
{{ define "meta" }}
{{- partial "single_meta.html" . -}}
{{- partial "opengraph_meta.html" . -}}
{{ end }}
{{ define "header" }}
{{- partial "single_json_ld.html" . -}}
{{ end }}
{{ define "main" -}}
<main class="main layout__main">
<article class="{{ with .Section }}section-{{ . | urlize }} {{ end }}single-view">