♻️ refactor: wrap tags in ul>li
Long tags will get wrapped onto new lines now.
This commit is contained in:
parent
9b680b0da7
commit
887929fac7
@ -73,6 +73,7 @@ header {
|
||||
letter-spacing: -0.5px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 300;
|
||||
padding: 0;
|
||||
padding-top: 0.7vmin;
|
||||
padding-bottom: 3vmin;
|
||||
line-height: 1.4rem;
|
||||
@ -85,6 +86,11 @@ header {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.meta ul, li{
|
||||
list-style-type: none;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.card-meta {
|
||||
color: var(--meta-color);
|
||||
font-size: 0.92rem;
|
||||
|
@ -3,37 +3,36 @@
|
||||
|
||||
<main>
|
||||
<article>
|
||||
<div>
|
||||
<div class="article-title">
|
||||
{{ page.title }}
|
||||
</div>
|
||||
<div class="meta">
|
||||
|
||||
<ul class="meta">
|
||||
{% if page.draft %}
|
||||
<span class="draft-label">DRAFT</span>
|
||||
{% endif %}
|
||||
|
||||
{% if page.date %}
|
||||
{{ macros_format_date::format_date(date=page.date) }}
|
||||
<span>{{ macros_format_date::format_date(date=page.date) }}</span>
|
||||
{{ separator }}
|
||||
{% endif %}
|
||||
|
||||
<span title="{{ page.word_count }} words">{{ page.reading_time }} min read</span>
|
||||
|
||||
{% if page.taxonomies and page.taxonomies.tags %}
|
||||
<nav class="nav tags"> {{ separator }} Tags:
|
||||
{{ separator }} Tags:
|
||||
{% for tag in page.taxonomies.tags %}
|
||||
<a href={{ get_taxonomy_url(kind='tags' , name=tag) | safe }}>{{ tag }}</a>{% if not loop.last %},
|
||||
{% endif %}
|
||||
<li><a href={{ get_taxonomy_url(kind='tags' , name=tag) | safe }}>{{ tag }}</a></li>
|
||||
{%- if not loop.last -%}
|
||||
,
|
||||
{%- endif -%}
|
||||
{% endfor %}
|
||||
</nav>
|
||||
{% endif %}
|
||||
|
||||
{% if page.updated %}
|
||||
<br>Last updated on {{ macros_format_date::format_date(date=page.updated) }}
|
||||
<br><span>Last updated on {{ macros_format_date::format_date(date=page.updated) }}</span>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
{% if page.extra.tldr %}
|
||||
<div class="tldr">
|
||||
|
Loading…
x
Reference in New Issue
Block a user