This commit is contained in:
2025-08-24 02:35:25 -05:00
parent 8083b1a299
commit f9481a6e7f
3 changed files with 24 additions and 24 deletions

View File

@@ -1,24 +1,26 @@
{{ define "main" }}
<h1>
{{ partial "icon.html" "user-circle" }}
{{ .Title | markdownify }}
</h1>
<section class="body-module--center">
<h1>
{{ partial "icon.html" "user-circle" }}
{{ .Title | markdownify }}
</h1>
{{ with .Content }}
{{ . }}
{{ end }}
<div class="page-list">
{{ with .Paginator.Pages }}
{{ range . }}
<article class="page">
{{ .Render "summary" }}
</article>
{{ end }}
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ with .Content }}
{{ . }}
{{ end }}
</div>
<div class="page-list">
{{ with .Paginator.Pages }}
{{ range . }}
<article class="page">
{{ .Render "summary" }}
</article>
{{ end }}
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
</section>
{{ end }}

View File

@@ -20,9 +20,7 @@
{{ end }}
</main>
{{ block "post-body" . }}
{{/* currently this is only used for related posts */}}
{{ end }}
{{ block "post-body" . }}{{ end }}
{{ if or .Site.Copyright .Site.Params.footer }}
<footer class="body-module--center">

View File

@@ -77,7 +77,7 @@
{{ define "post-body" }}
{{ $related := .Site.RegularPages.Related . | first 10 }}
{{ with $related }}
<div class="related-posts body-module--full-width">
<div class="body-module--full-width related-posts">
<hr>
<h1>{{ i18n "related_posts" }}</h1>
{{ partial "page-list.html" . }}