Browse Source

minor tweaks in languages

pull/1/head
Max le Fou 5 years ago
parent
commit
b04c144d45
  1. 14
      exampleSite/config.toml
  2. 5
      i18n/en.toml
  3. 7
      i18n/fr.toml
  4. 2
      layouts/partials/footer.html

14
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]

5
i18n/en.toml

@ -14,4 +14,7 @@ other = "Categories"
other = "Tags"
[backtohome]
other = "Back to Home"
other = "Back to Home"
[builton]
other = "Built on"

7
i18n/fr.toml

@ -11,7 +11,10 @@ other = "Articles de blog"
other = "Catégories"
[tags]
other = "Tags"
other = "Etiquettes"
[backtohome]
other = "Retour à l'accueil"
other = "Retour à l'accueil"
[builton]
other = "Propulsé par"

2
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">

Loading…
Cancel
Save