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

View File

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

View File

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