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

View File

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

View File

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

View File

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