🐛 Fix home URL if site deployed in sub-directory

This commit is contained in:
James Panther
2022-08-19 09:14:42 +10:00
parent 6642b0c150
commit dcba2153b1
2 changed files with 5 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
{{ define "main" }}
<article class="flex flex-col items-center justify-center mt-10">
<nav class="place-self-start">
<a href="{{ "/" | relURL }}" class="text-neutral-500">&larr; {{ i18n "nav.home" }}</a>
<a href="{{ "" | relURL }}" class="text-neutral-500">&larr; {{ i18n "nav.home" }}</a>
</nav>
<header>
<h1 class="mt-2 mb-6 text-4xl font-extrabold text-center text-neutral-800 dark:text-white">