Skip to content

Commit

Permalink
Updated to jekyll-archives-v2 0.0.5
Browse files Browse the repository at this point in the history
Signed-off-by: George Araújo <[email protected]>
  • Loading branch information
george-gca committed Dec 2, 2024
1 parent 60d04a7 commit b2a7850
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ GEM
safe_yaml (~> 1.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-archives-v2 (0.0.4)
jekyll-archives-v2 (0.0.5)
activesupport
jekyll (>= 3.6, < 5.0)
jekyll-email-protect (1.1.0)
jekyll-feed (0.17.0)
Expand Down Expand Up @@ -166,7 +167,7 @@ GEM
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
logger (1.6.1)
logger (1.6.2)
loofah (2.23.1)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
Expand Down Expand Up @@ -222,7 +223,7 @@ GEM
sass-embedded (1.81.0-x86_64-linux-musl)
google-protobuf (~> 4.28)
sax-machine (1.3.2)
securerandom (0.3.2)
securerandom (0.4.0)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
tzinfo (2.0.6)
Expand All @@ -232,7 +233,7 @@ GEM
unicode-display_width (2.6.0)
unicode_utils (1.4.0)
uri (1.0.2)
webrick (1.9.0)
webrick (1.9.1)

PLATFORMS
aarch64-linux
Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ jekyll-archives:
enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).
permalinks:
year: "/blog/:year/"
tag: "/blog/tag/:name/"
category: "/blog/category/:name/"
tags: "/blog/:type/:name/"
categories: "/blog/:type/:name/"
books:
enabled: [year, tags, categories] # enables year, tag and category archives (remove if you need to disable one of them).

Expand Down
4 changes: 2 additions & 2 deletions _layouts/archive.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ layout: default
---
<div class="post">
<header class="post-header">
{% if page.type == 'category' %}
{% if page.type == 'categories' %}
<h1 class="post-title"><i class="fa-solid fa-tag fa-sm"></i> {{ page.title }}</h1>
<p class="post-description">an archive of {{ page.collection_name }} in this category</p>
{% elsif page.type == 'year' %}
<h1 class="post-title"><i class="fa-solid fa-calendar fa-sm"></i> {{ page.date | date: '%Y' }}</h1>
<p class="post-description">an archive of {{ page.collection_name }} from this year</p>
{% elsif page.type == 'tag' %}
{% elsif page.type == 'tags' %}
<h1 class="post-title"><i class="fa-solid fa-hashtag fa-sm"></i> {{ page.title }}</h1>
<p class="post-description">an archive of {{ page.collection_name }} with this tag</p>
{% endif %}
Expand Down

0 comments on commit b2a7850

Please sign in to comment.