From f19a1f231b7e22b4ff613bd2b1a778540c0d1f55 Mon Sep 17 00:00:00 2001 From: rizkikadafi Date: Mon, 8 Apr 2024 16:45:45 +0700 Subject: [PATCH] update tags page --- _data/blog-navigation.yml | 2 +- _includes/blog-post-card.html | 2 +- _layouts/blog.html | 5 +-- _layouts/post.html | 10 +++--- assets/js/blog-navbar.js | 2 +- assets/js/category.js | 15 +++++---- assets/js/tag.js | 43 +++++++++++++++++++++++++ blog/{category.html => categories.html} | 6 ++-- blog/index.html | 1 - blog/tags.html | 38 ++++++++++++++++++++++ 10 files changed, 104 insertions(+), 20 deletions(-) create mode 100644 assets/js/tag.js rename blog/{category.html => categories.html} (85%) create mode 100644 blog/tags.html diff --git a/_data/blog-navigation.yml b/_data/blog-navigation.yml index 11054bb..3ebd228 100644 --- a/_data/blog-navigation.yml +++ b/_data/blog-navigation.yml @@ -1,7 +1,7 @@ - name: Dashboard link: "/blog" - name: Category - link: "/blog/category" + link: "/blog/categories" - name: Recent Post link: "/blog/#recent" - name: Archive diff --git a/_includes/blog-post-card.html b/_includes/blog-post-card.html index ae984e8..21aad40 100644 --- a/_includes/blog-post-card.html +++ b/_includes/blog-post-card.html @@ -15,7 +15,7 @@

{{ include.post.title }}

{% for tag in include.post.tags %} - {{tag}} {% endfor %} diff --git a/_layouts/blog.html b/_layouts/blog.html index 0f47065..77ffc18 100644 --- a/_layouts/blog.html +++ b/_layouts/blog.html @@ -11,14 +11,14 @@ - {{page.title}} + Kadafi's Blog {% if page.title %} | {{page.title}} {% endif %} {% include blog-modal-navigation.html %}