From 81c0b1ba9cc961fa1b2a8b121e2f9c803c4eb71c Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sat, 28 Nov 2020 12:29:43 +0100 Subject: [PATCH] i18n: add variables for footer translation --- i18n/en.toml | 6 +++--- i18n/fr.toml | 4 ++-- layouts/partials/footer/footer.html | 10 +++++++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/i18n/en.toml b/i18n/en.toml index 9df0c1d..1a7e1c8 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -32,7 +32,7 @@ other = "#PAGES_COUNT pages (#TIME_SECONDS seconds)" [footerBuiltWith] - other = "Built with" - + other = "Built with {{ .Generator }}" + [footerDesignedBy] - other = "designed by" \ No newline at end of file + other = "Theme {{ .Theme }} designed by {{ .DesignedBy }}" \ No newline at end of file diff --git a/i18n/fr.toml b/i18n/fr.toml index 8e33004..03c4efa 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -32,7 +32,7 @@ other = "#PAGES_COUNT pages (#TIME_SECONDS secondes)" [footerBuiltWith] - other = "Généré avec" + other = "Généré avec {{ .Generator }}" [footerDesignedBy] - other = "conçu par" \ No newline at end of file + other = "Thème {{ .Theme }} conçu par {{ .DesignedBy }}" \ No newline at end of file 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" -}} \ No newline at end of file