pidgin/nest

baee1c8450b1
Parents bcd002f09cc6
Children 049db3ecea5b
Add translation support for footline changes
--- a/hugo/i18n/en.toml Tue Jun 11 03:59:19 2019 +0100
+++ b/hugo/i18n/en.toml Tue Jun 11 04:42:00 2019 +0100
@@ -45,3 +45,21 @@
[Plugin-Info]
other = "This page contains a list of plugins from trusted authors and the community. If you believe a plugin should be on this list, please get in touch with us or open a pull request with the update."
+
+[Anon]
+other = "Anon"
+
+[Modified]
+other = "Modified"
+
+[License]
+other = "License"
+
+[Content]
+other = "Content"
+
+[Theme]
+other = "Theme"
+
+[Last-Modified-Not-Found]
+other = "An ineffable file, immune to a past"
--- a/hugo/layouts/partials/footline.html Tue Jun 11 03:59:19 2019 +0100
+++ b/hugo/layouts/partials/footline.html Tue Jun 11 04:42:00 2019 +0100
@@ -10,16 +10,16 @@
<i class='fas fa-user'></i> {{ . }}
{{ end }}
{{ else }}
- <i class='fas fa-user'></i> Anon
+ <i class='fas fa-user'></i> {{ T "Anon" }}
{{ end }}
</div>
<div>
<i class='fas fa-calendar'></i>
{{ with $.Lastmod }}
- Modified {{ .Format "02/01/2006" }}
+ {{ T "Modified" }} {{ .Format "02/01/2006" }}
{{ else }}
- An ineffable file, immune to a past
+ {{ T "Last-Modified-Not-Found" }}
{{ end }}
</div>
</div>
@@ -57,14 +57,14 @@
</p>
<div class="footline-license">
- License:
+ {{ T "License" }}:
<ul>
<li>
- Content - GPL3
+ {{ T "Content" }} - GPL3
</li>
<li>
- <a href="https://github.com/matcornic/hugo-theme-learn">Theme</a> - MIT<br/>
+ <a href="https://github.com/matcornic/hugo-theme-learn">{{ T "Theme" }}</a> - MIT<br/>
</li>
</ul>
</div>