🚸 Add home link on sub-pages

This commit is contained in:
James Panther 2021-11-06 16:54:11 +11:00
parent 5d1f8af7d3
commit 12e035a585
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
4 changed files with 19 additions and 1 deletions

View File

@ -1283,6 +1283,10 @@ body button {
justify-content: center; justify-content: center;
} }
.place-self-start {
place-self: start;
}
.rounded-full { .rounded-full {
border-radius: 9999px; border-radius: 9999px;
} }
@ -1356,6 +1360,11 @@ body button {
color: rgba(24, 24, 27, var(--tw-text-opacity)); color: rgba(24, 24, 27, var(--tw-text-opacity));
} }
.text-neutral-500 {
--tw-text-opacity: 1;
color: rgba(113, 113, 122, var(--tw-text-opacity));
}
.text-neutral-800 { .text-neutral-800 {
--tw-text-opacity: 1; --tw-text-opacity: 1;
color: rgba(39, 39, 42, var(--tw-text-opacity)); color: rgba(39, 39, 42, var(--tw-text-opacity));

View File

@ -38,5 +38,8 @@ link:
whatsapp: WhatsApp whatsapp: WhatsApp
youtube: YouTube youtube: YouTube
nav:
home: Home
footer: footer:
powered_by: "Powered by {{ .Hugo }} & {{ .Lynx }}" powered_by: "Powered by {{ .Hugo }} & {{ .Lynx }}"

View File

@ -38,5 +38,8 @@ link:
whatsapp: WhatsApp whatsapp: WhatsApp
youtube: YouTube youtube: YouTube
# nav:
# home: Home
footer: footer:
powered_by: "Propulsé par {{ .Hugo }} & {{ .Lynx }}" powered_by: "Propulsé par {{ .Hugo }} & {{ .Lynx }}"

View File

@ -1,5 +1,8 @@
{{ define "main" }} {{ define "main" }}
<article class="flex flex-col items-center justify-center mt-10 "> <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>
</nav>
<header> <header>
<h1 class="mt-2 mb-6 text-4xl font-extrabold text-center text-neutral-800 dark:text-white"> <h1 class="mt-2 mb-6 text-4xl font-extrabold text-center text-neutral-800 dark:text-white">
{{ .Title | emojify }} {{ .Title | emojify }}