Skip to content
Snippets Groups Projects
Commit b9086e51 authored by alexisben's avatar alexisben
Browse files

sitemap toc wip

parent b7e4d849
No related branches found
No related tags found
No related merge requests found
<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" }}
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment