mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 11:13:06 +00:00
Add content template
This commit is contained in:
parent
449708afd4
commit
49882c4ae6
3 changed files with 4 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
{{ if eq .Kind "section" }}
|
{{ if eq .Kind "section" }}
|
||||||
{{ .Content }}
|
{{ partial "content.html" . }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{ if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
{{ if or (eq .Kind "taxonomy") (eq .Kind "term") }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
{{ .Content }}
|
{{ partial "content.html" . }}
|
||||||
|
|
||||||
<footer class="footline">
|
<footer class="footline">
|
||||||
{{with .Params.LastModifierDisplayName}}
|
{{with .Params.LastModifierDisplayName}}
|
||||||
|
|
1
layouts/partials/content.html
Normal file
1
layouts/partials/content.html
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{{ .Content }}
|
Loading…
Reference in a new issue