Skip to content

Commit b2a7850

Browse files
committed
Updated to jekyll-archives-v2 0.0.5
Signed-off-by: George Araújo <[email protected]>
1 parent 60d04a7 commit b2a7850

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Gemfile.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ GEM
111111
safe_yaml (~> 1.0)
112112
terminal-table (>= 1.8, < 4.0)
113113
webrick (~> 1.7)
114-
jekyll-archives-v2 (0.0.4)
114+
jekyll-archives-v2 (0.0.5)
115+
activesupport
115116
jekyll (>= 3.6, < 5.0)
116117
jekyll-email-protect (1.1.0)
117118
jekyll-feed (0.17.0)
@@ -166,7 +167,7 @@ GEM
166167
listen (3.9.0)
167168
rb-fsevent (~> 0.10, >= 0.10.3)
168169
rb-inotify (~> 0.9, >= 0.9.10)
169-
logger (1.6.1)
170+
logger (1.6.2)
170171
loofah (2.23.1)
171172
crass (~> 1.0.2)
172173
nokogiri (>= 1.12.0)
@@ -222,7 +223,7 @@ GEM
222223
sass-embedded (1.81.0-x86_64-linux-musl)
223224
google-protobuf (~> 4.28)
224225
sax-machine (1.3.2)
225-
securerandom (0.3.2)
226+
securerandom (0.4.0)
226227
terminal-table (3.0.2)
227228
unicode-display_width (>= 1.1.1, < 3)
228229
tzinfo (2.0.6)
@@ -232,7 +233,7 @@ GEM
232233
unicode-display_width (2.6.0)
233234
unicode_utils (1.4.0)
234235
uri (1.0.2)
235-
webrick (1.9.0)
236+
webrick (1.9.1)
236237

237238
PLATFORMS
238239
aarch64-linux

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ jekyll-archives:
300300
enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
301301
permalinks:
302302
year: "/blog/:year/"
303-
tag: "/blog/tag/:name/"
304-
category: "/blog/category/:name/"
303+
tags: "/blog/:type/:name/"
304+
categories: "/blog/:type/:name/"
305305
books:
306306
enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
307307

_layouts/archive.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ layout: default
33
---
44
<div class="post">
55
<header class="post-header">
6-
{% if page.type == 'category' %}
6+
{% if page.type == 'categories' %}
77
<h1 class="post-title"><i class="fa-solid fa-tag fa-sm"></i> {{ page.title }}</h1>
88
<p class="post-description">an archive of {{ page.collection_name }} in this category</p>
99
{% elsif page.type == 'year' %}
1010
<h1 class="post-title"><i class="fa-solid fa-calendar fa-sm"></i> {{ page.date | date: '%Y' }}</h1>
1111
<p class="post-description">an archive of {{ page.collection_name }} from this year</p>
12-
{% elsif page.type == 'tag' %}
12+
{% elsif page.type == 'tags' %}
1313
<h1 class="post-title"><i class="fa-solid fa-hashtag fa-sm"></i> {{ page.title }}</h1>
1414
<p class="post-description">an archive of {{ page.collection_name }} with this tag</p>
1515
{% endif %}

0 commit comments

Comments
 (0)