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

gitlab.com/maxlefou/hugo.386.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax le Fou <buttbadger@gmail.com>2020-04-05 13:09:25 +0300
committerMax le Fou <buttbadger@gmail.com>2020-04-05 13:09:25 +0300
commitb04c144d45ddd2390ae31d23af5b28f5c4366c29 (patch)
tree7c16da81a278c50b87590e4844c8286a716950af
parent0770a2df4d72caf2f52b7b4ab2a1e993c5de9afb (diff)
minor tweaks in languages
-rw-r--r--exampleSite/config.toml14
-rw-r--r--i18n/en.toml5
-rw-r--r--i18n/fr.toml7
-rw-r--r--layouts/partials/footer.html2
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 }}</a>{{ end }}
<span id="thisyear">2020</span>
{{ if isset .Site.Params "showhugo" }}
- | Built on <a href="//gohugo.io" target="_blank">Hugo</a>
+ | {{ i18n "builton" }} <a href="//gohugo.io" target="_blank">Hugo</a>
{{ end }}
</p>
<p class="text-center">