Skip to content
Snippets Groups Projects
Commit bcc7f587 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

order

parent 522e98df
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,26 @@
{{ partial "contents/list.html" . }}
<div class="block block-sitemap" id="pages">
<div class="container">
<div class="block-content">
<h2>Pages</h2>
<ul>
{{ range (where .Site.Pages "Type" "pages") }}
{{ if eq .Parent.Path "/pages" }}
<li>
<a href="{{ .Permalink }}">{{ safeHTML .Title }}</a>
{{ if .Pages }}
{{ partial "pages/sitemap_recursive_pages" .}}
{{ end }}
</li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
</div>
{{ range .Site.Sections }}
{{ if and (ne .Type "sitemap") (ne .Type "pages") }}
{{ $permalink := .Permalink }}
......@@ -43,24 +63,5 @@
{{ end }}
{{ end }}
<div class="block block-sitemap" id="pages">
<div class="container">
<div class="block-content">
<h2>Pages</h2>
<ul>
{{ range (where .Site.Pages "Type" "pages") }}
{{ if eq .Parent.Path "/pages" }}
<li>
<a href="{{ .Permalink }}">{{ safeHTML .Title }}</a>
{{ if .Pages }}
{{ partial "pages/sitemap_recursive_pages" .}}
{{ end }}
</li>
{{ end }}
{{ end }}
</ul>
</div>
</div>
</div>
</div>
{{ end }}
......@@ -3,8 +3,11 @@
{{- if .context.Params.contents -}}
{{- partial "blocks/toc.html" .context.Params.contents -}}
{{- end -}}
<li>
<a href="#pages">Pages</a>
</li>
{{ range site.Sections }}
{{ if ne .Type "sitemap" }}
{{ if and (ne .Type "sitemap") (ne .Type "pages") }}
<li>
<a href="#{{ .Type }}">{{ safeHTML .Title }}</a>
</li>
......
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