From 98e1cf8252dd3b679ab69047e7cec53e8e7c2c1c Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 29 Nov 2019 00:04:01 +0800 Subject: [PATCH] Beautified the tags in posts. --- _layouts/post.html | 2 +- assets/css/main.scss | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 0f0392a..cf4688b 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -69,7 +69,7 @@ layout: default {{- tag -}} - {%- if forloop.last != true -%} {%- endif -%} + {% endfor %} {% endif %} diff --git a/assets/css/main.scss b/assets/css/main.scss index 40c8ac1..d75ee99 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -713,9 +713,12 @@ table tbody td { } .post-tag { + display: inline-block; + min-width: 2rem; + text-align: center; background: rgba(0, 0, 0, 0.075); border-radius: .34rem; - padding: .25rem .4rem; + padding: 0 .4rem; margin: 0 .1rem; color: #818182; line-height: 1.6rem;