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" baseURL = "https://example.com"
title = "HUGO.386" title = "HUGO.386"
languageCode = "en" languageCode = "en"
DefaultContentLanguage = "en" DefaultContentLanguage = "en" # Change this to change the site's language
theme = "hugo.386" theme = "hugo.386"
preserveTaxonomyNames = true preserveTaxonomyNames = true
@ -41,17 +41,17 @@ preserveTaxonomyNames = true
loadonepass = false loadonepass = false
[menu] [menu]
# This displays buttons in the navbar to access your contents
[[menu.main]] [[menu.main]]
identifier = "about" identifier = "about" # An unique identifier for the button
name = "About" name = "About" # A display name for the button
url = "/about/" url = "/about/" # The path to the content. It can lead to a single page (like here)
weight = 10 weight = 10 # A number to order the buttons in the navbar
[[menu.main]] [[menu.main]]
identifier = "posts" identifier = "posts"
name = "All posts" name = "All posts"
url = "/post/" url = "/post/" # The path can lead to a content folder too.
weight = 20 weight = 20
[taxonomies] [taxonomies]

5
i18n/en.toml

@ -14,4 +14,7 @@ other = "Categories"
other = "Tags" other = "Tags"
[backtohome] [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" other = "Catégories"
[tags] [tags]
other = "Tags" other = "Etiquettes"
[backtohome] [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 }} {{ with .Site.Params.copyrighturl }}</a>{{ end }}
<span id="thisyear">2020</span> <span id="thisyear">2020</span>
{{ if isset .Site.Params "showhugo" }} {{ 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 }} {{ end }}
</p> </p>
<p class="text-center"> <p class="text-center">

Loading…
Cancel
Save