From b04c144d45ddd2390ae31d23af5b28f5c4366c29 Mon Sep 17 00:00:00 2001
From: Max le Fou
Date: Sun, 5 Apr 2020 12:09:25 +0200
Subject: [PATCH] minor tweaks in languages
---
exampleSite/config.toml | 14 +++++++-------
i18n/en.toml | 5 ++++-
i18n/fr.toml | 7 +++++--
layouts/partials/footer.html | 2 +-
4 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 4dec7a5..55b09ae 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -1,7 +1,7 @@
baseURL = "https://example.com"
title = "HUGO.386"
languageCode = "en"
-DefaultContentLanguage = "en"
+DefaultContentLanguage = "en" # Change this to change the site's language
theme = "hugo.386"
preserveTaxonomyNames = true
@@ -41,17 +41,17 @@ preserveTaxonomyNames = true
loadonepass = false
[menu]
-
+ # This displays buttons in the navbar to access your contents
[[menu.main]]
- identifier = "about"
- name = "About"
- url = "/about/"
- weight = 10
+ identifier = "about" # An unique identifier for the button
+ name = "About" # A display name for the button
+ url = "/about/" # The path to the content. It can lead to a single page (like here)
+ weight = 10 # A number to order the buttons in the navbar
[[menu.main]]
identifier = "posts"
name = "All posts"
- url = "/post/"
+ url = "/post/" # The path can lead to a content folder too.
weight = 20
[taxonomies]
diff --git a/i18n/en.toml b/i18n/en.toml
index 1cc9528..e8b8437 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -14,4 +14,7 @@ other = "Categories"
other = "Tags"
[backtohome]
-other = "Back to Home"
\ No newline at end of file
+other = "Back to Home"
+
+[builton]
+other = "Built on"
\ No newline at end of file
diff --git a/i18n/fr.toml b/i18n/fr.toml
index 8daa786..a4dc798 100644
--- a/i18n/fr.toml
+++ b/i18n/fr.toml
@@ -11,7 +11,10 @@ other = "Articles de blog"
other = "Catégories"
[tags]
-other = "Tags"
+other = "Etiquettes"
[backtohome]
-other = "Retour à l'accueil"
\ No newline at end of file
+other = "Retour à l'accueil"
+
+[builton]
+other = "Propulsé par"
\ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 4af4279..cd8f5ce 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -7,7 +7,7 @@
{{ with .Site.Params.copyrighturl }}{{ end }}
2020
{{ if isset .Site.Params "showhugo" }}
- | Built on Hugo
+ | {{ i18n "builton" }} Hugo
{{ end }}