Skip to content

Commit bf65a27

Browse files
committed
Remove tag class for simplicity
1 parent 74f3c8f commit bf65a27

File tree

4 files changed

+4
-19
lines changed

4 files changed

+4
-19
lines changed

app/src/Blog/Tag.php

Lines changed: 0 additions & 15 deletions
This file was deleted.

source/_views/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h1 class="mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl" ite
2727
{% for tag in page.tags %}
2828
<a href="{{ site.url }}/blog/tag/{{ tag|url_encode(true) }}"
2929
class="rounded-full bg-gray-50 px-3 py-1.5 font-medium text-gray-600 hover:bg-gray-100 no-underline">
30-
{{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[tag] ?? tag }}
30+
{{ tag | capitalize }}
3131
</a>
3232
{% endfor %}
3333
</div>

source/blog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1 class="text-4xl font-bold">{{ page.title }}</h1>
2424
{% for tag in post.tags %}
2525
<a href="{{ site.url }}/blog/tag/{{ tag|url_encode(true) }}"
2626
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">
27-
{{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[tag] ?? tag }}
27+
{{ tag | capitalize }}
2828
</a>
2929
{% endfor %}
3030
</div>

source/blog/tag/tag.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

1414
{% if page.tag == 'roundup' %}
@@ -27,7 +27,7 @@ <h1 class="text-4xl font-bold">Tag: {{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[
2727
{% for tag in post.tags %}
2828
<a href="{{ site.url }}/blog/tag/{{ tag|url_encode(true) }}"
2929
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">
30-
{{ constant('App\\Blog\\Tag::ALLOWED_TAGS')[tag] ?? tag }}
30+
{{ tag | capitalize }}
3131
</a>
3232
{% endfor %}
3333
</div>

0 commit comments

Comments
 (0)