From 3a954f9c967e47bf69cd6dad327146c8e72bd94f Mon Sep 17 00:00:00 2001 From: koirand Date: Wed, 15 Jan 2020 16:16:46 -1000 Subject: [PATCH] Display tags on list.html --- assets/css/style.css | 20 ++++++++++++++++++++ exampleSite/config.toml | 2 +- layouts/_default/list.html | 8 ++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/assets/css/style.css b/assets/css/style.css index a9e3ccd..875b7d5 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -154,6 +154,26 @@ nav li { background-color: #dddfdf; } +#tags ul { + max-width: 600px; + margin: 0 auto; + display: flex; + padding: 0; + justify-content: center; + flex-wrap: wrap; + list-style: none; +} + +#tags li { + height: 24px; + margin: 5px; + padding: 0 5px; + background-color: #dddfdf; + border-radius: 5px; + font-size: 14px; + /* text-decoration: none; */ +} + #contentsList { padding: 20px 0; } diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 43cd18b..9cc8f90 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -8,7 +8,7 @@ hasCJKLanguage = true # googleAnalytics = "{your tracking code}" [taxonomies] - series = "series" + tags = "tags" [params] author = "Your Name" diff --git a/layouts/_default/list.html b/layouts/_default/list.html index f98242d..f1f1458 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -7,6 +7,14 @@
+ +
+ +
{{ $listPageDateFormat := .Site.Params.listPageDateFormat | default "January, 2006"}}