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

fix sitemap

parent b37dcd8c
No related branches found
No related tags found
No related merge requests found
.block-sitemap
h3
a
text-decoration: none
ul + h3
margin-top: $spacing3
\ No newline at end of file
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
@import "blocks/partners" @import "blocks/partners"
@import "blocks/posts" @import "blocks/posts"
@import "blocks/programs" @import "blocks/programs"
@import "blocks/sitemap"
@import "blocks/summary" @import "blocks/summary"
@import "blocks/testimonials" @import "blocks/testimonials"
@import "blocks/timeline" @import "blocks/timeline"
......
---
title: Sitemap
---
---
title: Plan du site
url: plan-du-site
---
...@@ -5,19 +5,25 @@ ...@@ -5,19 +5,25 @@
"image" .Params.image "image" .Params.image
"context" . "context" .
) -}} ) -}}
<div class="document-content"> <div class="document-content">
{{ partial "toc/container.html" {{ partial "toc/container.html"
(dict (dict
"toc" "sitemap/toc.html" "toc" "sitemap/toc.html"
"context" . "context" .
) ) }}
}}
<div class="container"> {{ partial "sitemap/summary.html" (dict
<div class="content"> "context" .
{{- partial "sitemap/document-nav" . -}} "block_wrapped" true
) }}
<div>
{{ range site.Sections }} {{ partial "blocks/list.html" . }}
<section class="block block-sitemap">
<div class="container">
<div class="block-content">
{{ range .Site.Sections }}
{{ if ne .Type "sitemap" }} {{ if ne .Type "sitemap" }}
{{ $permalink := .Permalink }} {{ $permalink := .Permalink }}
<h3 id="{{ .Type }}"> <h3 id="{{ .Type }}">
...@@ -34,6 +40,7 @@ ...@@ -34,6 +40,7 @@
{{ end }} {{ end }}
</div> </div>
</div> </div>
</div> </section>
</div> </div>
{{ end }} {{ end }}
<div class="document-nav">
<div>
{{- partial "sitemap/toc.html" . -}}
</div>
</div>
\ No newline at end of file
{{- partial "commons/summary.html" . -}}
<nav class="toc" id="nav-toc" aria-label="{{ i18n "commons.toc" }}"> <nav class="toc" id="nav-toc" aria-label="{{ i18n "commons.toc" }}">
<ol> <ol>
{{- if .context.Params.blocks -}}
{{- partial "blocks/toc.html" .context.Params.blocks -}}
{{- end -}}
{{ range site.Sections }} {{ range site.Sections }}
{{ if ne .Type "sitemap" }} {{ if ne .Type "sitemap" }}
<li> <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