Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/yursan9/manis-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurizal Susanto <rizalsagi@gmail.com>2018-04-02 18:46:59 +0300
committerYurizal Susanto <rizalsagi@gmail.com>2018-04-02 18:46:59 +0300
commit65277964d615bc6c161c6d4188368d67d24658ac (patch)
tree3e4a1001b9c547c69e454729696117e01bb05546
parentd8411e14f4464ad55a8246e5c3bd08e0b8c6f5da (diff)
Add posts count in taxonomy page
-rw-r--r--layouts/_default/terms.html13
-rw-r--r--static/css/ui.css4
2 files changed, 11 insertions, 6 deletions
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index c3e475b..a36eab9 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1,13 +1,14 @@
{{ partial "header" . }}
-<section>
+<section class="terms">
{{ partial "title" . }}
{{ with .Content }}{{.}}{{ end }}
<ul style="list-style: none;">
- {{ range .Data.Terms.Alphabetical }}
- <li style="display: inline;">
- <a href="/{{$.Data.Plural}}/{{.Term}}">{{ .Term }}</a>
- </li>
- {{ end }}
+ {{ range .Data.Terms.Alphabetical }}
+ <li style="display: inline;">
+ <a href="/{{$.Data.Plural}}/{{.Term}}" style="">{{ .Term }}</a>
+ <span>({{ .Count }})</span>
+ </li>
+ {{ end }}
</ul>
</section>
{{ partial "footer" . }}
diff --git a/static/css/ui.css b/static/css/ui.css
index ba3043c..152a3ad 100644
--- a/static/css/ui.css
+++ b/static/css/ui.css
@@ -181,6 +181,10 @@ ul.no-bullet {
display: inline;
}
}
+.terms li>span {
+ color: #666;
+ font-family: monospace;
+}
dd { margin-left: 2rem; }