summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/danix-xyz-hacker/layouts/404.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/themes/danix-xyz-hacker/layouts/404.html b/themes/danix-xyz-hacker/layouts/404.html
index 00dcfcf..a81f34d 100644
--- a/themes/danix-xyz-hacker/layouts/404.html
+++ b/themes/danix-xyz-hacker/layouts/404.html
@@ -77,13 +77,17 @@ window.articlesData = [
<!-- Navigation Links -->
<div class="space-y-4 flex flex-col items-center mb-12">
- <a href="{{ .Site.BaseURL }}" class="btn btn-primary">
+ {{ $homeLink := "/" }}
+ {{ if eq .Lang "it" }}
+ {{ $homeLink = "/it/" }}
+ {{ end }}
+ <a href="{{ $homeLink }}" class="btn btn-primary">
{{ i18n "goHome" }}
</a>
- <a href="{{ .Site.BaseURL }}{{ .Site.Language.Lang }}/articles/" class="btn btn-secondary">
+ <a href="{{ if eq .Lang "it" }}/it{{ end }}/articles/" class="btn btn-secondary">
{{ i18n "browseArticles" }}
</a>
- <a href="{{ .Site.BaseURL }}{{ .Site.Language.Lang }}/is/here/" class="btn btn-outline">
+ <a href="{{ if eq .Lang "it" }}/it{{ end }}/is/here/" class="btn btn-outline">
{{ i18n "contactSupport" }}
</a>
</div>