Implement new layout dir structure.

This commit is contained in:
Fredrik Jonsson 2025-04-11 15:08:04 +02:00
commit 83530eb11a

View file

@ -1,17 +0,0 @@
{{ define "main" -}}
<main class="main layout__main">
<article class="single-view{{ with .Section }} single-view--{{ . | urlize }}{{ end }}">
<header>
<h1 class="title{{ if $.Param "submitted" | default false }} mb--xxs{{ end }}">{{ .Title }}</h1>
{{ if $.Param "submitted" | default false }}{{ partial "submitted.html" . }}{{ end -}}
{{ if .Params.tags }}{{ partial "tags.html" . }}{{ end -}}
</header>
{{ .Content }}
{{ if ne .Lastmod .Date }}{{ partial "dates.html" . }}{{ end -}}
{{ if site.Params.repository | default false }}{{ partial "repository-links.html" . }}{{ end -}}
{{ if $.Param "relatedposts" | default false }}{{ partial "relatedposts.html" . }}{{ end -}}
</article>
</main>
{{ end -}}