Beautified the tags in posts.

This commit is contained in:
Cotes Chung 2019-11-29 00:04:01 +08:00
parent 5354a2adbf
commit 98e1cf8252
2 changed files with 5 additions and 2 deletions

View file

@ -69,7 +69,7 @@ layout: default
<a href="{{ site.baseurl }}/tags/{{ tag | replace: ' ', '-' | downcase }}/" <a href="{{ site.baseurl }}/tags/{{ tag | replace: ' ', '-' | downcase }}/"
class="post-tag no-text-decoration" > class="post-tag no-text-decoration" >
{{- tag -}} {{- tag -}}
</a>{%- if forloop.last != true -%}&ensp;{%- endif -%} </a>
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}

View file

@ -713,9 +713,12 @@ table tbody td {
} }
.post-tag { .post-tag {
display: inline-block;
min-width: 2rem;
text-align: center;
background: rgba(0, 0, 0, 0.075); background: rgba(0, 0, 0, 0.075);
border-radius: .34rem; border-radius: .34rem;
padding: .25rem .4rem; padding: 0 .4rem;
margin: 0 .1rem; margin: 0 .1rem;
color: #818182; color: #818182;
line-height: 1.6rem; line-height: 1.6rem;