Skip to content

Commit

Permalink
Remove tag class for simplicity
Browse files Browse the repository at this point in the history
  • Loading branch information
pronskiy committed Nov 5, 2024
1 parent 74f3c8f commit bf65a27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
15 changes: 0 additions & 15 deletions app/src/Blog/Tag.php

This file was deleted.

2 changes: 1 addition & 1 deletion source/_views/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 class="mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl" ite
{% for tag in page.tags %}
<a href="{{ site.url }}/blog/tag/{{ tag|url_encode(true) }}"
class="rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100 no-underline">
{{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[tag] ?? tag }}
{{ tag | capitalize }}
</a>
{% endfor %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion source/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1 class="text-4xl font-bold">{{ page.title }}</h1>
{% for tag in post.tags %}
<a href="{{ site.url }}/blog/tag/{{ tag|url_encode(true) }}"
class="relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100 no-underline">
{{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[tag] ?? tag }}
{{ tag | capitalize }}
</a>
{% endfor %}
</div>
Expand Down
4 changes: 2 additions & 2 deletions source/blog/tag/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<section class="mx-auto max-w-3xl my-16 w-full bg-white px-4 md:px-0">
<header class="mb-8">
<h1 class="text-4xl font-bold">Tag: {{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[page.tag] ?? page.tag }}</h1>
<h1 class="text-4xl font-bold">Tag: {{ page.tag | capitalize }}</h1>
</header>

{% if page.tag == 'roundup' %}
Expand All @@ -27,7 +27,7 @@ <h1 class="text-4xl font-bold">Tag: {{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[
{% for tag in post.tags %}
<a href="{{ site.url }}/blog/tag/{{ tag|url_encode(true) }}"
class="relative z-10 rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100 no-underline">
{{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[tag] ?? tag }}
{{ tag | capitalize }}
</a>
{% endfor %}
</div>
Expand Down

0 comments on commit bf65a27

Please sign in to comment.