Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <jimmehcai@gmail.com>2020-11-28 14:29:43 +0300
committerJimmy Cai <jimmehcai@gmail.com>2020-11-28 14:29:43 +0300
commit81c0b1ba9cc961fa1b2a8b121e2f9c803c4eb71c (patch)
tree1424190709b1ee4c47196423b060a3e45f68f3ef /layouts/partials/footer/footer.html
parent50b3ed18e30287e3ac746bdd99f15f63d12b5ced (diff)
i18n: add variables for footer translation
Diffstat (limited to 'layouts/partials/footer/footer.html')
-rw-r--r--layouts/partials/footer/footer.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html
index 9821e0c..6bd37b2 100644
--- a/layouts/partials/footer/footer.html
+++ b/layouts/partials/footer/footer.html
@@ -1,8 +1,12 @@
+{{- $ThemeVersion := "1.1.0" -}}
<footer class="site-footer">
<section class="copyright">&copy; {{ now.Format "2006" }} {{ .Site.Title }}</section>
<section class="powerby">
- {{ T "footerBuiltWith" }} <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a> <br />
- Theme <b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="1.1.0">Stack</a></b> {{ T "footerDesignedBy" }}
- <a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>
+ {{- $Generator := `<a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>` -}}
+ {{- $Theme := printf `<b><a href="https://github.com/CaiJimmy/hugo-theme-stack" target="_blank" rel="noopener" data-version="%s">Stack</a></b>` $ThemeVersion -}}
+ {{- $DesignedBy := `<a href="https://jimmycai.com" target="_blank" rel="noopener">Jimmy</a>` -}}
+
+ {{ T "footerBuiltWith" (dict "Generator" $Generator) | safeHTML }} <br />
+ {{ T "footerDesignedBy" (dict "Theme" $Theme "DesignedBy" $DesignedBy) | safeHTML }}
</section>
</footer> \ No newline at end of file