Files
bobatheme/layouts/series/summary.html
BBaoVanC 6251b033d5 Move article.page wrapping to summary.html instead of at list template
I am trying to make various templates and partials act more like
self-contained components.

This is in preparation for #113.
2025-09-01 00:50:54 -05:00

22 lines
588 B
HTML

<article class="page">
<h2 class="page-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2>
{{ partial "page-metadata/series.html" . }}
{{ with .Summary }}
<div class="page-description">
{{ . }}
</div>
{{ end }}
<div class="page-list series-inner">
{{ range .Data.Pages.Reverse }}
{{ .Render "summary" }}
{{ end }}
</div>
</article>