{{ define "main" }} <main> {{ partial "article-meta.html" . }} {{ if .Params.toc }} {{ .TableOfContents }} {{ end }} {{ .Content }} </main> {{ if gt (len .Data.Pages) 0 }} <section> <h2>Devlogs:</h2> </section> <section class="article-list"> {{ range .Data.Pages }} {{ partial "article-card.html" . }} {{ end }} </section> {{ end }} {{ end }}