2026-04-24 14:36:57 -06:00
|
|
|
{{ define "main" }}
|
|
|
|
|
{{ range sort .Paginator.Pages }}
|
2026-10-11 08:59:18 -06:00
|
|
|
<article class="book-post markdown" data-pagefind-body>
|
2026-04-24 14:36:57 -06:00
|
|
|
<h2>
|
|
|
|
|
<a href="{{ .RelPermalink }}">{{ partial "docs/title" . }}</a>
|
|
|
|
|
</h2>
|
|
|
|
|
<div class="book-post-container flex gap">
|
|
|
|
|
<div>
|
|
|
|
|
{{ partial "docs/post-meta" . }}
|
|
|
|
|
<div class="book-post-content markdown-inner">
|
|
|
|
|
{{- .Summary | truncate 256 -}}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{- $thumbnail := default "thumbnail.*" .Params.BookPostThumbnail -}}
|
|
|
|
|
{{- with or (.Resources.GetMatch $thumbnail) (resources.GetMatch $thumbnail) -}}
|
|
|
|
|
<div class="book-post-thumbnail">
|
|
|
|
|
<img src="{{ .RelPermalink }}" alt="{{ partial "docs/text/i18n" "Thumbnail" }}" />
|
|
|
|
|
</div>
|
|
|
|
|
{{- end -}}
|
|
|
|
|
</div>
|
|
|
|
|
</article>
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ define "toc-container" }}
|
|
|
|
|
<aside class="book-toc">
|
|
|
|
|
<div class="book-toc-content">
|
|
|
|
|
{{ template "toc" . }}
|
|
|
|
|
</div>
|
|
|
|
|
</aside>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ define "toc" }}
|
|
|
|
|
{{ partial "docs/taxonomy" . }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ define "footer" }}
|
|
|
|
|
{{ partial "docs/pagination.html" . }}
|
|
|
|
|
{{ end }}
|