🐛 Fix home URL if site deployed in sub-directory
This commit is contained in:
parent
6642b0c150
commit
dcba2153b1
@ -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
|
||||
|
@ -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">← {{ i18n "nav.home" }}</a>
|
||||
<a href="{{ "" | relURL }}" class="text-neutral-500">← {{ i18n "nav.home" }}</a>
|
||||
</nav>
|
||||
<header>
|
||||
<h1 class="mt-2 mb-6 text-4xl font-extrabold text-center text-neutral-800 dark:text-white">
|
||||
|
Loading…
Reference in New Issue
Block a user