diff --git a/layouts/partials/sitemap/toc.html b/layouts/partials/sitemap/toc.html index 49a56588ba823b9ecde52462a812f1e0f2ba04da..c4f755cdbc180fd7aaf26b9ad1753056ab6871bd 100644 --- a/layouts/partials/sitemap/toc.html +++ b/layouts/partials/sitemap/toc.html @@ -1,4 +1,4 @@ -<nav class="toc" id="nav-toc" aria-label="Table des matières"> +<nav class="toc" id="nav-toc" aria-label="{{ i18n "commons.toc" }}"> <ol> {{ range site.Sections }} {{ if ne .Type "sitemap" }} diff --git a/layouts/sitemap/list.html b/layouts/sitemap/list.html index fe90eda7eef2795dd2920d1820ee7418e98e0c39..61410ead7d0f9cd5c3a779345edfbeba4edfd3ba 100644 --- a/layouts/sitemap/list.html +++ b/layouts/sitemap/list.html @@ -5,25 +5,34 @@ "image" .Params.image "context" . ) -}} - <div class="document-content container"> - <div class="content"> - {{- partial "sitemap/document-nav" . -}} - <div> - {{ range site.Sections }} - {{ if ne .Type "sitemap" }} - {{ $permalink := .Permalink }} - <h3 id="{{ .Type }}"> - <a href="{{ $permalink }}">{{ safeHTML .Title }}</a> - </h3> - <ul> - {{ range where .Site.Pages "Section" .Type }} - {{ if ne $permalink .Permalink }} - <li><a href="{{ .Permalink }}">{{ safeHTML .Title }}</a></li> + <div class="document-content"> + {{ partial "toc/container.html" + (dict + "toc" "sitemap/toc.html" + "context" . + ) + }} + <div class="container"> + <div class="content"> + {{- partial "sitemap/document-nav" . -}} + + <div> + {{ range site.Sections }} + {{ if ne .Type "sitemap" }} + {{ $permalink := .Permalink }} + <h3 id="{{ .Type }}"> + <a href="{{ $permalink }}">{{ safeHTML .Title }}</a> + </h3> + <ul> + {{ range where .Site.Pages "Section" .Type }} + {{ if ne $permalink .Permalink }} + <li><a href="{{ .Permalink }}">{{ safeHTML .Title }}</a></li> + {{ end }} {{ end }} - {{ end }} - </ul> + </ul> + {{ end }} {{ end }} - {{ end }} + </div> </div> </div> </div>