Skip to content

Commit 053b877

Browse files
committed
Add my name in footer and support opinion articles
1 parent 3403265 commit 053b877

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

templates/articles/_articles.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ <h1 class="m-2 p-2 inline-block font-bold text-2xl">{{ title }}</h1>
2828
</td>
2929
<td>
3030
{% if "tip" in list_item.taxonomies["tags"] %}
31-
{{ badge_macro::badge(href="/tags/tip", title="Tip") }}
31+
{{ badge_macro::badge(href="/tags/tip", title="Tip") }}
3232
{% elif "tutorial" in list_item.taxonomies["tags"] %}
33-
{{ badge_macro::badge(href="/tags/tutorial", title="Tutorial") }}
33+
{{ badge_macro::badge(href="/tags/tutorial", title="Tutorial") }}
34+
{% elif "opinion" in list_item.taxonomies["tags"] %}
35+
{{ badge_macro::badge(href="/tags/opinion", title="Opinion") }}
3436
{% endif %}
3537
</td>
3638
</tr>

templates/layout/footer.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<footer class="mt-20 p-4 text-center text-xs font-normal">
22
<span>
3-
Written with <a
4-
class="dark:text-orange-500 dark:hover:text-orange-500 dark:hover:bg-neutral-900"
3+
Written by Maxime Buffa with <a class="dark:text-orange-500 dark:hover:text-orange-500 dark:hover:bg-neutral-900"
54
href="https://www.getzola.org/" target="_blank">Zola</a> and <a
6-
class="dark:text-orange-500 dark:hover:text-orange-500 dark:hover:bg-neutral-900"
7-
href="https://tailwindcss.com/" target="_blank">Tailwind</a>
5+
class="dark:text-orange-500 dark:hover:text-orange-500 dark:hover:bg-neutral-900" href="https://tailwindcss.com/"
6+
target="_blank">Tailwind</a>
87
</span>
98
</footer>

0 commit comments

Comments
 (0)