🐛 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
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgrade to Tailwind v3.1.8 ([#12](https://github.com/jpanther/lynx/pull/12), [#18](https://github.com/jpanther/lynx/pull/18))
- Upgrade to Typography v0.5.4 ([#16](https://github.com/jpanther/lynx/pull/16))
### Fixed
- Home link not pointing to correct URL when site deployed in a sub-directory
## [1.2.0] - 2022-06-17
### Added

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">