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:
parent
e8c04dfc8e
commit
9eea6f46a9
1 changed files with 31 additions and 115 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue