From 90ead0daea57a511aea13aa004fe382e076feb2f Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sun, 31 Aug 2025 03:09:37 -0500 Subject: [PATCH] WIP --- assets/css/bobastyle.css | 26 +++++++++++++------------- layouts/authors/summary.html | 28 +++++++++++++++------------- layouts/authors/taxonomy.html | 14 +------------- layouts/summary.html | 32 +++++++++++++++++--------------- 4 files changed, 46 insertions(+), 54 deletions(-) diff --git a/assets/css/bobastyle.css b/assets/css/bobastyle.css index e3ddb6b..8dd2160 100644 --- a/assets/css/bobastyle.css +++ b/assets/css/bobastyle.css @@ -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 {{{ */ diff --git a/layouts/authors/summary.html b/layouts/authors/summary.html index 790b879..3ed3526 100644 --- a/layouts/authors/summary.html +++ b/layouts/authors/summary.html @@ -1,16 +1,18 @@ -

- {{ .Title | markdownify }} - {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} -

+
+

+ {{ .Title | markdownify }} + {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} +

-{{ partial "page-metadata/author.html" . }} + {{ partial "page-metadata/author.html" . }} -{{ with .Summary }} -
- {{ . }} + {{ with .Summary }} +
+ {{ . }} +
+ {{ end }} + + -{{ end }} - - +
diff --git a/layouts/authors/taxonomy.html b/layouts/authors/taxonomy.html index 79ddbc6..982a28a 100644 --- a/layouts/authors/taxonomy.html +++ b/layouts/authors/taxonomy.html @@ -8,17 +8,5 @@ {{ . }} {{ end }} -
- {{ with .Paginator.Pages }} - {{ range . }} -
- {{ .Render "summary" }} -
- {{ end }} - {{ else }} -
- {{ i18n "no_posts" }} -
- {{ end }} -
+ {{ partial "page-list.html" .Paginator.Pages }} {{ end }} diff --git a/layouts/summary.html b/layouts/summary.html index 0af2631..7aeb860 100644 --- a/layouts/summary.html +++ b/layouts/summary.html @@ -1,19 +1,21 @@ -

- {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} - {{ .Title | markdownify }} - {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} -

+
+

+ {{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }} + {{ .Title | markdownify }} + {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} +

-{{ partial "page-metadata/post-short.html" . }} + {{ partial "page-metadata/post-short.html" . }} -{{ partial "feature-figure.html" . }} + {{ partial "feature-figure.html" . }} -{{ with .Summary }} -
- {{ . }} + {{ with .Summary }} +
+ {{ . }} +
+ {{ end }} + + -{{ end }} - - +