Skip to content

Commit

Permalink
Updated Tagging Mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
shashank-on-codehunt committed Sep 7, 2024
1 parent 8058ccb commit 6573d72
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
38 changes: 38 additions & 0 deletions _data/tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
git:
name: Git

project-management:
name: Project Management

intellij:
name: Intellij

debugging:
name: Debugging

mysql:
name: MySql

docker:
name: Docker

localization:
name: Localization

internationalization:
name: Internationalization

spring:
name: Spring

poc:
name: POC

productivity:
name: Productivity

thymeleaf:
name: Thymeleaf

H2:
name: H2
9 changes: 9 additions & 0 deletions _includes/posts_by_tag.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{% if posts %}
<ul>
{% for post in posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% else %}
<p>No posts found with this tag.</p>
{% endif %}
9 changes: 9 additions & 0 deletions tag/debugging.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
layout: page
tag: debugging
title: "Posts tagged with Debugging"
permalink: /tag/debugging/
---

{% assign posts = site.tags['Debugging'] %}
{% include posts_by_tag.html %}
11 changes: 11 additions & 0 deletions tags.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: page
title: Tags
---
<ul>
{% for tag in site.tags %}
<li>
<a href="{{ site.baseurl }}/tag/{{ tag[0] | slugify }}">{{ tag[0] }}</a> ({{ tag[1].size }})
</li>
{% endfor %}
</ul>

0 comments on commit 6573d72

Please sign in to comment.