From 43cd8c06d462566bf460e2701b34f9a9396517b6 Mon Sep 17 00:00:00 2001 From: wlh233 Date: Tue, 24 Aug 2021 21:41:55 +0800 Subject: =?UTF-8?q?fix=20issue#2=20and=20=E4=B8=AD=E6=96=87=E4=B9=B1?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/common.scss | 14 +++++++++----- layouts/partials/posts.html | 24 ++++++++++++------------ 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/assets/css/common.scss b/assets/css/common.scss index 2b5e2e4..3af0c70 100644 --- a/assets/css/common.scss +++ b/assets/css/common.scss @@ -109,21 +109,25 @@ body { /* posts */ .post-box { - position: relative; + display: flex; + flex-wrap: wrap; + padding: 1.25rem 0 0 1.25rem; +} +.post-box-title { + margin-right: 1.25rem; + width: 100%; } .post-box-tags { - position: absolute; - right: 0rem; - bottom: 0rem; + margin-left: auto; } .post-box-tag { color: $primary; font-size: 0.9em; } .post-box-meta { - padding-bottom: 0.1rem; opacity: 0.8; font-size: 0.9rem; + width: 100%; } #back-to-top { background: $primary; diff --git a/layouts/partials/posts.html b/layouts/partials/posts.html index f1addb0..dc61fd2 100644 --- a/layouts/partials/posts.html +++ b/layouts/partials/posts.html @@ -9,15 +9,6 @@ {{ $paginator := .Paginate (where (where .Site.Pages "Type" "post") "Kind" "page") }} {{ range $paginator.Pages }}
- {{ with .Params.Tags }} -
- {{ range .}} - - {{ end }} -
- {{ end }}
{{ .Title }}
@@ -26,11 +17,20 @@ {{ with .Params.Categories }} ・ {{ range .}} {{ end }} {{ end }}
+ {{ with .Params.Tags }} +
+ {{ range .}} + + {{ end }} +
+ {{ end }} {{ end }} @@ -50,7 +50,7 @@
{{ range .Site.Taxonomies.categories.ByCount }}
- {{ .Name }} + {{ .Name }} {{ .Count }} @@ -90,4 +90,4 @@
- \ No newline at end of file + -- cgit v1.2.3