Use bulma tags for tags
This commit is contained in:
parent
b4c5032448
commit
ed535626b5
2 changed files with 29 additions and 4 deletions
|
@ -4,11 +4,27 @@ section.content {
|
|||
}
|
||||
|
||||
.content-details {
|
||||
span + span {
|
||||
& > span + span {
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
i {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.tags {
|
||||
display: inline-flex;
|
||||
margin-bottom: 0;
|
||||
|
||||
.tag {
|
||||
background-color: unset;
|
||||
font-size: inherit;
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
|
||||
& &:not(:last-child) {
|
||||
margin-right: 0.2rem !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,15 @@
|
|||
<span title="{{ page.word_count }} words"><i class="far fa-clock"></i>{{ page.reading_time }} minutes</span>
|
||||
{% endif %}
|
||||
|
||||
{% if page.tags.all %}
|
||||
<span class="is-family-code"><i class="fas fa-tags"></i>{% for tag in page.tags.all %}<a title="{{ tag.name }}">#{{ tag.slug }}</a>{% endfor %}</span>
|
||||
{% endif %}
|
||||
{% spaceless %}
|
||||
{% if page.tags.all %}
|
||||
<span>
|
||||
<i class="fas fa-tags"></i>
|
||||
<div class="tags is-family-code">
|
||||
{% for tag in page.tags.all %}
|
||||
<span class="tag"><a title="{{ tag.name }}">#{{ tag.slug }}</a></span>
|
||||
{% endfor%}
|
||||
</div>
|
||||
<span>
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
|
|
Loading…
Reference in a new issue