Introduction
Introduction Statistics Contact Development Disclaimer Help
tFix translation names in page footer - andersdamsgaard.com - my photography we…
git clone git://src.adamsgaard.dk/andersdamsgaard.com
Log
Files
Refs
Submodules
README
LICENSE
---
commit 6ab6aa7b0a1cbad8adc9b9a2197d08698850637e
parent c6560b5bca3173a1c5155921f7812cbab7a54ea4
Author: Anders Damsgaard <[email protected]>
Date: Mon, 5 Nov 2018 12:13:59 +0100
Fix translation names in page footer
Diffstat:
M themes/tale-mod/layouts/index.html | 9 ---------
M themes/tale-mod/layouts/partials/f… | 10 ++++++++++
M themes/tale-mod/layouts/partials/h… | 12 ++++++------
3 files changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/themes/tale-mod/layouts/index.html b/themes/tale-mod/layouts/index…
t@@ -27,13 +27,4 @@
</center>
</main>
-<br>
-<p>
- <center>
- {{ range $.Site.Home.AllTranslations }}
- <a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
- {{ end }}
- </center>
-</p>
-
{{ partial "footer.html" . }}
diff --git a/themes/tale-mod/layouts/partials/footer.html b/themes/tale-mod/lay…
t@@ -1,3 +1,13 @@
+
+ {{ if .IsTranslated }}
+ <h4>{{ i18n "translations" }}</h4>
+ <center>
+ {{ range .Translations }}
+ <a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
+ {{ end}}
+ </center>
+ {{ end }}
+
<footer>
<span>
&copy; <time datetime="{{ now }}">{{ now.Format "2006"…
diff --git a/themes/tale-mod/layouts/partials/header.html b/themes/tale-mod/lay…
t@@ -11,13 +11,13 @@
</a>
<ul>
{{- if eq .Lang "da" }}
- <li><a href="{{ .Site.BaseURL }}">Portefølje<…
- <li><a href="{{ .Site.BaseURL }}prints">Køb b…
- <li><a href="{{ .Site.BaseURL }}about">Om</a><…
+ <li><a href="{{ .Site.BaseURL }}{{ .Lang }}/">Portefølje</a><…
+ <li><a href="{{ .Site.BaseURL }}{{ .Lang }}/prints">Køb bille…
+ <li><a href="{{ .Site.BaseURL }}{{ .Lang }}/about">Om</a></li>
{{- else }}
- <li><a href="{{ .Site.BaseURL }}">Portfolio</a…
- <li><a href="{{ .Site.BaseURL }}prints">Prints…
- <li><a href="{{ .Site.BaseURL }}about">About</…
+ <li><a href="{{ .Site.BaseURL }}">Portfolio</a></li>
+ <li><a href="{{ .Site.BaseURL }}prints">Prints</a></li>
+ <li><a href="{{ .Site.BaseURL }}about">About</a></li>
{{- end }}
</ul>
</div>
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.