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

Merge branch 'main' of github.com:noesya/osuny-hugo-theme-aaa

parents 7cf91bec b68bcec3
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 @@
@import "blocks/partners"
@import "blocks/posts"
@import "blocks/programs"
@import "blocks/sitemap"
@import "blocks/summary"
@import "blocks/testimonials"
@import "blocks/timeline"
......
---
title: Sitemap
---
---
title: Plan du site
url: plan-du-site
---
{{ define "main" }}
{{- partial "header/hero.html"
(dict
"title" .Title
"image" .Params.image
"context" .
) -}}
<div class="document-content">
{{ partial "toc/container.html"
(dict
"toc" "sitemap/toc.html"
"context" .
) }}
{{ partial "sitemap/summary.html" (dict
"context" .
"block_wrapped" true
) }}
{{ partial "blocks/list.html" . }}
<section class="block block-sitemap">
<div class="container">
<div class="block-content">
{{ 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 }}
</ul>
{{ end }}
{{ end }}
</div>
</div>
</section>
</div>
{{ 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="Table des matières">
<nav class="toc" id="nav-toc" aria-label="{{ i18n "commons.toc" }}">
<ol>
{{- if .context.Params.blocks -}}
{{- partial "blocks/toc.html" .context.Params.blocks -}}
{{- end -}}
{{ range site.Sections }}
{{ if ne .Type "sitemap" }}
<li>
......
{{ define "main" }}
{{- partial "header/hero.html"
(dict
"title" .Title
"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>
{{ end }}
{{ end }}
</ul>
{{ end }}
{{ end }}
</div>
</div>
</div>
{{ end }}
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