Move all layouts to platters theme

This commit is contained in:
Eryn Wells 2024-10-07 21:39:17 -07:00
parent de8101efed
commit 66adceaf24
91 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{{ partial "content_header.html" . }}
{{ partial "table_of_contents.html" . }}
{{- $layout := .Params.layout -}}
{{- $content := .Content -}}
{{ with $layout := .Params.layout }}
<article class="{{ $layout }}">
{{ $content }}
</article>
{{ else }}
{{ $content }}
{{ end}}
<footer>
{{ partial "footer_tags.html" . }}
{{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- if and (gt (len $pages) 1) (in $pages . ) -}}
<nav class="post-nav">
{{ with $pages.Prev . }}
<a class="prev" href="{{ .Permalink }}"><span></span><span>{{ .Name }}</span></a>
{{ end }}
{{ with $pages.Next . }}
<a class="next" href="{{ .Permalink }}"><span>{{ .Name }}</span><span></span></a>
{{ end }}
</nav>
{{- end -}}
</footer>