From 60c7d92f2591a8ccbbcc7a830c3251044892cefb Mon Sep 17 00:00:00 2001 From: AmazingRise <8315221+AmazingRise@users.noreply.github.com> Date: Thu, 14 Apr 2022 22:11:16 +0800 Subject: Fixed #39 --- assets/scss/journal.scss | 11 ++++++++ layouts/_default/terms.html | 48 ++++++++++++++++------------------ layouts/partials/extrabar.html | 2 +- layouts/partials/mobile-paginator.html | 2 +- 4 files changed, 35 insertions(+), 28 deletions(-) diff --git a/assets/scss/journal.scss b/assets/scss/journal.scss index 7f8db12..63c329e 100644 --- a/assets/scss/journal.scss +++ b/assets/scss/journal.scss @@ -1089,3 +1089,14 @@ mjx-container { .vcontent p { color: black !important; } + +.tags { + display: flex; + align-items: center; + flex-direction: row; + padding-left: 10px; + flex-wrap: wrap; + .tag { + margin: 10px; + } +} \ No newline at end of file diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index f31029f..c977206 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,32 +1,28 @@ {{ define "main" }} -
- -
-
-
-
- {{.Title}} -
-
-
-
-
- - {{ range .Paginator.Pages }} - -
-
-
-
- {{.Title}} -
-
-
-
-
- {{ end }} +
+ +
+
+
+
+ {{.Title}} +
+
+
+
+
+ {{ range .Data.Terms }} + + {{ end }} +
+
{{ end }} \ No newline at end of file diff --git a/layouts/partials/extrabar.html b/layouts/partials/extrabar.html index 85b4b1e..6df9155 100644 --- a/layouts/partials/extrabar.html +++ b/layouts/partials/extrabar.html @@ -21,7 +21,7 @@ {{ end }} - {{ if .Paginator }} + {{ if and (.Paginator) (not (.Data.Terms)) }} {{ if gt .Paginator.TotalPages 1 }}
diff --git a/layouts/partials/mobile-paginator.html b/layouts/partials/mobile-paginator.html index d1a1bb3..103f81b 100644 --- a/layouts/partials/mobile-paginator.html +++ b/layouts/partials/mobile-paginator.html @@ -1,4 +1,4 @@ -{{ if .Paginator }} +{{ if and (.Paginator) (not (.Data.Terms)) }} {{ if gt .Paginator.TotalPages 1 }}