diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 15911e2570..86b5d04dfe 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -12,7 +12,6 @@ defaultContentLanguageInSubdir= true editURL = "https://github.com/matcornic/hugo-theme-learn/edit/master/docs/content/" description = "Documentation for Hugo Learn Theme" author = "Mathieu Cornic" - showVisitedLinks = true # default to false disableSearch = false # default to false ordersectionsby = "weight" # ordersectionsby = "title" @@ -20,13 +19,13 @@ defaultContentLanguageInSubdir= true home = [ "HTML", "RSS", "JSON"] -[Languages] -[Languages.en] -title = "Documentation for Hugo Learn Theme" -weight = 1 -languageName = "English" - -[Languages.fr] -title = "Documentation du thème Hugo Learn" -weight = 2 -languageName = "Français" \ No newline at end of file +#[Languages] +#[Languages.en] +#title = "Documentation for Hugo Learn Theme" +#weight = 1 +#languageName = "English" +# +#[Languages.fr] +#title = "Documentation du thème Hugo Learn" +#weight = 2 +#languageName = "Français" \ No newline at end of file diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 90c52ef75c..c9ff53eceb 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -24,9 +24,9 @@ {{end}} {{end}} -
- + {{ if or .Site.IsMultiLingual $showvisitedlinks }}
+
+ {{ end }} @@ -87,12 +88,10 @@ {{if .Params.alwaysopen}}parent{{end}} "> - - {{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}} - {{ if $showvisitedlinks}} - - {{ end }} - + {{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}} + {{ if $showvisitedlinks}} + + {{ end }} {{ $numberOfPages := (add (len .Pages) (len .Sections)) }} {{ if ne $numberOfPages 0 }} @@ -125,9 +124,8 @@ {{ if not .Params.Hidden }}
  • - {{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}} + {{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}} {{ if $showvisitedlinks}}{{end}} -
  • {{ end }}