Tweak tech blog theme

- Upgrade deps
This commit is contained in:
2022-05-25 20:20:15 -04:00
parent ff560d1d2f
commit b15fb78d5b
7 changed files with 21 additions and 33 deletions

View File

@@ -19,24 +19,22 @@
<div class="entry-content">{{ post.text }}</div>
{%- assign cat_count = post.category_ids | size -%}
{%- if cat_count > 0 %}
<small class="category-list">
<small>
Categorized under
{%- for cat_id in post.category_ids %}
{% for cat_id in post.category_ids -%}
{%- assign cat = categories | where: "id", cat_id | first -%}
<span>
<a href="{{ cat | category_link }}"
title="Categorized under {{ cat.name | strip_html | escape }}" rel="tag">{{ cat.name }}</a></span>
<a href="{{ cat | category_link }}" title="Categorized under {{ cat.name | strip_html | escape }}"
rel="tag">{{ cat.name }}</a>{% unless forloop.last %}, {% endunless %}
{%- endfor %}
</small><br>
{%- endif %}
{%- assign tag_count = post.tags | size -%}
{%- if tag_count > 0 %}
<small class="category-list">
<small>
Tagged
{%- for tag in post.tags %}
<span>
<a href="{{ tag | tag_link }}" title="Tagged &ldquo;{{ tag | escape }}&rdquo;" rel="tag">{{ tag }}</a>
</span>
{% for tag in post.tags -%}
<a href="{{ tag | tag_link }}" title="Tagged &ldquo;{{ tag | escape }}&rdquo;"
rel="tag">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}
{%- endfor %}
</small><br>
{%- endif %}

View File

@@ -18,6 +18,7 @@
href="{{ "feed.xml" | absolute_link }}">
<link rel="canonical" href="{{ "" | absolute_link }}">
{%- endif %}
<link rel="icon" href="/themes/bit-badger/favicon.ico">
</head>
<body>
<header class="site-header">

View File

@@ -8,16 +8,12 @@
{%- assign cat_count = post.category_ids | size -%}
{%- if cat_count > 0 %}
<br>
<small class="category-list">
<small>
Categorized under
{%- for cat_id in post.category_ids %}
{% for cat_id in post.category_ids -%}
{%- assign cat = categories | where: "id", cat_id | first -%}
<span>
<a href="{{ cat | category_link }}" title="Categorized under {{ cat.name | strip_html | escape }}"
rel="tag">
{{ cat.name }}
</a>
</span>
<a href="{{ cat | category_link }}" title="Categorized under {{ cat.name | strip_html | escape }}"
rel="tag">{{ cat.name }}</a>{% unless forloop.last %}, {% endunless %}
{%- endfor %}
</small>
{%- endif %}
@@ -27,12 +23,11 @@
<div class="entry-footer">
{%- assign tag_count = post.tags | size -%}
{%- if tag_count > 0 %}
<span class="category-list">
<span>
Tagged
{%- for tag in post.tags %}
<span>
<a href="{{ tag | tag_link }}" title="Tagged &ldquo;{{ tag | escape }}&rdquo;" rel="tag">{{ tag }}</a>
</span>
{% for tag in post.tags -%}
<a href="{{ tag | tag_link }}" title="Tagged &ldquo;{{ tag | escape }}&rdquo;"
rel="tag">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}
{%- endfor %}
</span> &bull;
{%- endif %}