From 9111e6a6b6f4c7cacf6fdfc95155f41ecda80a1f Mon Sep 17 00:00:00 2001 From: mivinci <1366723936@qq.com> Date: Sat, 11 Sep 2021 12:07:03 +0800 Subject: [PATCH] some improvements --- layouts/_default/terms.html | 14 ++++++++------ layouts/partials/footer.html | 4 ++-- layouts/partials/header.html | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 857318a..7dff683 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -2,13 +2,15 @@ {{ .Title }} - {{ $data := .Data }} - {{ range $key, $value := .Data.Terms.ByCount }} - - {{ $value.Name }} + {{ $data := .Data }} + {{ range $key, $value := .Data.Terms.ByCount }} + + + {{ $value.Name }} + {{ $value.Count }} - - {{ end }} + + {{ end }} {{ end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f44e585..4487d76 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,8 +1,8 @@