Simplify tags

pull/1/head
mat ess 2022-08-14 09:46:13 -04:00
parent 1706887633
commit bf3bfd616d
3 changed files with 9 additions and 19 deletions

View File

@ -168,10 +168,6 @@ ul.tags {
} }
} }
.meta.tags {
float: right;
}
// Header dot // Header dot
.header-dot { .header-dot {
font-size: 1.6em; font-size: 1.6em;

View File

@ -10,11 +10,11 @@
<a href={{ page.permalink }}>{{page.title}}</a> <a href={{ page.permalink }}>{{page.title}}</a>
</h1> </h1>
<div class="meta tags"> <div class="meta">
{{ post_macros::tags(page=page, short=false) }} posted on <time>{{ page.date | date(format="%Y-%m-%d") }}</time>
</div> </div>
<time>{{ page.date | date(format="%Y-%m-%d") }}</time> {{ post_macros::tags(page=page) }}
<br /> <br />
<div class="description"> <div class="description">
@ -36,19 +36,13 @@
</ul> </ul>
{% endmacro list_posts %} {% endmacro list_posts %}
{% macro tags(page, short=false) %} {% macro tags(page) %}
{%- if page.taxonomies and page.taxonomies.tags %} {%- if page.taxonomies and page.taxonomies.tags %}
<span class="post-tags-inline"> <span class="meta post-tags-inline">
{%- if short %} <span>tagged with </span>
::
{%- set sep = "," -%}
{% else %}
:: tags:&nbsp;
{%- set sep = "&nbsp;" -%}
{% endif -%}
{%- for tag in page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %}
<a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a> <a class="post-tag" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}">#{{ tag }}</a>
{%- if not loop.last %}{{ sep | safe }}{% endif -%} {%- if not loop.last %},{% endif -%}
{% endfor -%} {% endfor -%}
</span> </span>
{% endif -%} {% endif -%}
@ -131,7 +125,7 @@
{% if page.taxonomies and page.taxonomies.tags %} {% if page.taxonomies and page.taxonomies.tags %}
<div class="post-tags"> <div class="post-tags">
<span class="meta" id="tagged-with-label">This post is tagged with</span> <span class="meta" id="tagged-with-label">this post is tagged with</span>
<nav class="nav tags" aria-labelledby="tagged-with-label"> <nav class="nav tags" aria-labelledby="tagged-with-label">
<ul class="tags"> <ul class="tags">
{% for tag in page.taxonomies.tags %} {% for tag in page.taxonomies.tags %}

View File

@ -7,7 +7,7 @@
{% for menu in config.extra.menu %} {% for menu in config.extra.menu %}
{%- set external = menu.external | default(value=false) -%} {%- set external = menu.external | default(value=false) -%}
{%- if external %} {%- if external %}
<a href={{ menu.url }} target="_blank" rel="noopener noreferrer">{{ menu.name }}</a> <a href={{ menu.url }} target="_blank" rel="me noopener noreferrer">{{ menu.name }}</a>
{%- else %} {%- else %}
<a href={{ get_url(path=menu.url) }}>{{ menu.name }}</a> <a href={{ get_url(path=menu.url) }}>{{ menu.name }}</a>
{%- endif -%} {%- endif -%}