24 lines
1.0 KiB
HTML
24 lines
1.0 KiB
HTML
{{ define "main" }}
|
|
<!-- this is a single article / docs -->
|
|
{{/* https://discourse.gohugo.io/t/how-can-i-filter-pages-by-tag/12245/6 */}}
|
|
{{$articles := .Site.RegularPages.RelatedTo (keyVals "tags" "article")}}
|
|
<div class='hx:mx-auto hx:flex hextra-max-page-width'>
|
|
{{ partial "sidebar.html" (dict "context" .) }}
|
|
<article class="hx:w-full hx:break-words hx:flex hx:min-h-[calc(100vh-var(--navbar-height))] hx:min-w-0 hx:justify-center hx:pb-8 hx:pr-[calc(env(safe-area-inset-right)-1.5rem)]">
|
|
<main class="hx:w-full hx:min-w-0 hx:max-w-6xl hx:px-6 hx:pt-4 hx:md:px-12">
|
|
<div class="content">
|
|
section-summary {{.Content}}
|
|
<ul class="all-posts">
|
|
{{range $articles }}
|
|
<li>d <a href="{{.Permalink}}">{{.Title}}</a><br>{{.Param "blurb"}}</li>
|
|
{{end}}
|
|
asdfasdf
|
|
</ul>
|
|
</div>
|
|
{{ partial "components/last-updated.html" . }}
|
|
{{ partial "components/pager.html" . }}
|
|
{{ partial "components/comments.html" . }}
|
|
</main>
|
|
</article>
|
|
</div>
|
|
{{ end }} |