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 {
font-size: 1.6em;

View File

@ -10,11 +10,11 @@
<a href={{ page.permalink }}>{{page.title}}</a>
</h1>
<div class="meta tags">
{{ post_macros::tags(page=page, short=false) }}
<div class="meta">
posted on <time>{{ page.date | date(format="%Y-%m-%d") }}</time>
</div>
<time>{{ page.date | date(format="%Y-%m-%d") }}</time>
{{ post_macros::tags(page=page) }}
<br />
<div class="description">
@ -36,19 +36,13 @@
</ul>
{% endmacro list_posts %}
{% macro tags(page, short=false) %}
{% macro tags(page) %}
{%- if page.taxonomies and page.taxonomies.tags %}
<span class="post-tags-inline">
{%- if short %}
::
{%- set sep = "," -%}
{% else %}
:: tags:&nbsp;
{%- set sep = "&nbsp;" -%}
{% endif -%}
<span class="meta post-tags-inline">
<span>tagged with </span>
{%- for tag in page.taxonomies.tags %}
<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 -%}
</span>
{% endif -%}
@ -131,7 +125,7 @@
{% if page.taxonomies and page.taxonomies.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">
<ul class="tags">
{% for tag in page.taxonomies.tags %}

View File

@ -7,7 +7,7 @@
{% for menu in config.extra.menu %}
{%- set external = menu.external | default(value=false) -%}
{%- 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 %}
<a href={{ get_url(path=menu.url) }}>{{ menu.name }}</a>
{%- endif -%}