diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-12-18 21:28:54 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2024-12-18 21:28:54 +0100 |
commit | 9610877ef54536386b6ea7de29270993194161a5 (patch) | |
tree | f10ee67ba59d8eb15f101d3a4b85bbbcf0e118a4 | |
parent | bbd324d0c3e245742dc9e23ce218bd7ed916f675 (diff) | |
download | blog-9610877ef54536386b6ea7de29270993194161a5.tar.gz blog-9610877ef54536386b6ea7de29270993194161a5.zip |
tags: add padding between line and page count
-rw-r--r-- | sass/site.scss | 4 | ||||
-rw-r--r-- | templates/tags/list.html | 4 | ||||
-rw-r--r-- | templates/tags/single.html | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/sass/site.scss b/sass/site.scss index 427d9ee..7def614 100644 --- a/sass/site.scss +++ b/sass/site.scss @@ -128,6 +128,10 @@ pre code::before, pre code::after { opacity: 0.5; } +.line-spacer { + padding-bottom: 0.5ch; +} + // -- playground //nav { diff --git a/templates/tags/list.html b/templates/tags/list.html index 8de7870..1cb8e70 100644 --- a/templates/tags/list.html +++ b/templates/tags/list.html @@ -4,8 +4,8 @@ <h1>Tags</h1> <ul> {% for term in terms %} - <li> - <a href="{{ term.permalink }}">#{{ term.name }}</a> + <li class="line-spacer"> + <a href="{{ term.permalink }}">#{{ term.name }} ({{ term.page_count }})</a> </li> {% endfor %} </ul> diff --git a/templates/tags/single.html b/templates/tags/single.html index 52b965e..4298c70 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -4,7 +4,7 @@ <h1>Tag: #{{ term.name }}</h1> <ul> {% for page in term.pages %} - <li> + <li class="line-spacer"> <a href="{{ page.permalink }}">{{ page.title }}</a> </li> {% endfor %} |