This commit is contained in:
2025-08-31 03:09:37 -05:00
parent 37dbdc53af
commit 90ead0daea
4 changed files with 46 additions and 54 deletions

View File

@@ -455,14 +455,14 @@ body {
margin-top: 16px; margin-top: 16px;
} }
.page-list > .page { .summary {
padding: 24px; padding: 24px;
border-radius: 12px; border-radius: 12px;
background-color: var(--background-1); background-color: var(--background-1);
color: var(--text-1); color: var(--text-1);
} }
.page > .page-title { .summary-title {
margin-top: 0; margin-top: 0;
} }
@@ -474,18 +474,26 @@ body {
} }
*/ */
.page-title { .summary-title {
margin-bottom: 10px; margin-bottom: 10px;
} }
.page-title a { .summary-title a {
color: inherit; color: inherit;
} }
.page-title h1 { .summary-title h1 {
margin: 0; margin: 0;
} }
.summary-description {
margin-top: 10px;
}
.summary-readmore {
margin-top: 5px;
}
.page-metadata { .page-metadata {
margin-bottom: 24px; margin-bottom: 24px;
} }
@@ -511,14 +519,6 @@ body {
margin-top: 15px; margin-top: 15px;
} }
.page-description {
margin-top: 10px;
}
.readmore {
margin-top: 5px;
}
/* }}} */ /* }}} */
/* Taxonomy list layout {{{ */ /* Taxonomy list layout {{{ */

View File

@@ -1,4 +1,5 @@
<h2 class="page-title"> <article class="summary">
<h2 class="summary-title">
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
</h2> </h2>
@@ -6,11 +7,12 @@
{{ partial "page-metadata/author.html" . }} {{ partial "page-metadata/author.html" . }}
{{ with .Summary }} {{ with .Summary }}
<div class="page-description"> <div class="summary-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
<div class="readmore"> <div class="summary-readmore">
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a> <a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
</div> </div>
</article>

View File

@@ -8,17 +8,5 @@
{{ . }} {{ . }}
{{ end }} {{ end }}
<div class="page-list"> {{ partial "page-list.html" .Paginator.Pages }}
{{ with .Paginator.Pages }}
{{ range . }}
<article class="page">
{{ .Render "summary" }}
</article>
{{ end }}
{{ else }}
<div>
{{ i18n "no_posts" }}
</div>
{{ end }}
</div>
{{ end }} {{ end }}

View File

@@ -1,4 +1,5 @@
<h2 class="page-title"> <article class="summary">
<h2 class="summary-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a> <a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
@@ -9,11 +10,12 @@
{{ partial "feature-figure.html" . }} {{ partial "feature-figure.html" . }}
{{ with .Summary }} {{ with .Summary }}
<div class="page-description"> <div class="summary-description">
{{ . }} {{ . }}
</div> </div>
{{ end }} {{ end }}
<div class="readmore"> <div class="summary-readmore">
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a> <a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
</div> </div>
</article>