2 Commits

Author SHA1 Message Date
0790ed94b9 WIP 2025-08-25 18:23:39 -05:00
c7c1ee0f0a Put title on series page in div.page-title like other taxonomy pages
This must've gotten out of sync somehow throughout the history. It
slightly changes the margins by disabling the default one on h1, which
is slightly larger than the breadcrumb nav margin-block's.
2025-08-25 13:44:08 -05:00
4 changed files with 54 additions and 44 deletions

View File

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

View File

@@ -7,7 +7,7 @@
{{ if .Site.Params.homepageLatestPosts }} {{ if .Site.Params.homepageLatestPosts }}
<hr> <hr>
<div class="homepage-latest-posts"> <section class="homepage-latest-posts">
<h1> <h1>
{{ i18n "latest_posts" }} {{ i18n "latest_posts" }}
{{ partial "rss-link.html" . }} {{ partial "rss-link.html" . }}
@@ -16,6 +16,6 @@
{{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }} {{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }}
{{ partial "pagination.html" . }} {{ partial "pagination.html" . }}
</div> </section>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@@ -1,25 +1,27 @@
{{ define "main" }} {{ define "main" }}
<h1> <section>
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }} <h1>
{{ .Title | markdownify }} {{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
{{ partial "rss-link.html" . }} {{ .Title | markdownify }}
</h1> {{ partial "rss-link.html" . }}
</h1>
{{ with .Content }} {{ with .Content }}
{{ . }} {{ . }}
{{ end }}
<div class="list-page-container">
{{ with .Sections }}
<div class="sections">
{{ range . }}
{{ .Render "summary" }}
{{ end }}
</div>
{{ end }} {{ end }}
{{ partial "page-list.html" .Paginator.Pages }} <div class="list-page-container">
</div> {{ with .Sections }}
<div class="sections">
{{ range . }}
{{ .Render "summary" }}
{{ end }}
</div>
{{ end }}
{{ partial "pagination.html" . }} {{ partial "page-list.html" .Paginator.Pages }}
</div>
{{ partial "pagination.html" . }}
</section>
{{ end }} {{ end }}

View File

@@ -1,8 +1,10 @@
{{ define "main" }} {{ define "main" }}
<h1> <div class="page-title">
{{ partial "icon.html" "files" }} <h1>
{{ .Title | markdownify }} {{ partial "icon.html" "files" }}
</h1> {{ .Title | markdownify }}
</h1>
</div>
{{ with .Content }} {{ with .Content }}
{{ . }} {{ . }}