diff --git a/exampleSite/README.md b/exampleSite/README.md index 90a45bfbcd..c861e7563c 100644 --- a/exampleSite/README.md +++ b/exampleSite/README.md @@ -1,12 +1,11 @@ - récriture doc -> TODO - créer une section Showcase +- Menus déroulants icone -> TODO + - créer des jolis thèmes de base (avec des noms ou au moins de meilleures couleurs) -> DOING - Thème blue : OK - Thème red: OK - Theme green: OK -- Menus déroulants icone -> TODO - - - Passer a Wercker -> OK - corriger le multilangue pour la recherche et les autres ressources statiques : OK - Section "MORE" -> OK diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d928816a4b..f3f8029a97 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,13 +12,7 @@ defaultContentLanguageInSubdir= true editURL = "https://github.com/matcornic/hugo-theme-learn/edit/master/docs/content/" description = "Documentation for Hugo Learn Theme" author = "Mathieu Cornic" - disableSearch = false # default to false - disableAssetBusting = false # default to false - ordersectionsby = "weight" # ordersectionsby = "title" - disableInlineCopyToClipBoard = true # default to false showVisitedLinks = true - themeVariant = "red" - enableShortcutsTitle = true [outputs] home = [ "HTML", "RSS", "JSON"] @@ -38,7 +32,7 @@ weight = 10 [[Languages.en.menu.shortcuts]] name = " Showcases" -url = "/showcase" +url = "/en/showcase" weight = 11 [[Languages.en.menu.shortcuts]] @@ -49,7 +43,7 @@ weight = 20 [[Languages.en.menu.shortcuts]] name = " Credits" -url = "/credits" +url = "/en/credits" weight = 30 [Languages.fr] diff --git a/i18n/en.toml b/i18n/en.toml index 56a1af4fc5..6c952fbe5c 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -17,7 +17,7 @@ other = "Woops. Looks like this page doesn't exist ¯\\_(ツ)_/¯." other = "Go to homepage" [Edit-this-page] -other = "Edit page" +other = "Edit this page" [Shortcuts-Title] other = "More" \ No newline at end of file diff --git a/layouts/404.html b/layouts/404.html index 556cbcecb9..1fc6265e2a 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -5,7 +5,7 @@ {{ partial "meta.html" . }} {{ partial "favicon.html" . }} {{ .Scratch.Add "title" "" }}{{ if eq .Site.Data.titles .Title }}{{ .Scratch.Set "title" (index .Site.Data.titles .Title).title }}{{ else }}{{ .Scratch.Set "title" .Title}}{{end}} {{ .Scratch.Get "title" }} - {{ $assetBusting := not .Site.Params.disableAssetBusting }} + {{ $assetBusting := not .Site.Params.disableAssetsBusting }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 65bd3756d2..734dd347d0 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -52,20 +52,20 @@
- - - - - - - + + + + + + + - - - + + + - - + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d9d2468981..51a5f12846 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,7 +8,7 @@ {{ partial "favicon.html" . }} {{ .Title }} :: {{ .Site.Title }} - {{ $assetBusting := not .Site.Params.disableAssetBusting }} + {{ $assetBusting := not .Site.Params.disableAssetsBusting }} diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index f9de567d1c..60c3d8ad8b 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -25,10 +25,10 @@ {{end}} - {{ $enableShortcutsTitle := .Site.Params.EnableShortcutsTitle}} + {{ $disableShortcutsTitle := .Site.Params.DisableShortcutsTitle}} {{with .Site.Menus.shortcuts}}
-

{{ if $enableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}

+

{{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}