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

Merge branch 'refacto/html' of github.com:noesya/osuny-hugo-theme-aaa into refacto/html

parents 5f2d31e2 f149af8b
No related branches found
No related tags found
No related merge requests found
......@@ -21,10 +21,7 @@
</div>
{{ else }}
{{ partial "pages/image.html" .Params.image }}
{{/* LEGACY */}}{{ partial "pages/body.html" .Content }}
{{/* LEGACY */}}{{ partial "pages/body.html" .Params.legacy_text }}
{{ partial "pages/children.html" .Params.children }}
{{/* LEGACY */}}{{ partial "posts/related.html" $category }}
{{ end }}
{{ end }}
{{ range . -}}
{{- if .title }}
<li>
<a class="nav-link" href="#block-{{ .position }}">{{ partial "PrepareHTML" .title }}</a>
<a href="#block-{{ .position }}">{{ partial "PrepareHTML" .title }}</a>
</li>
{{ end -}}
{{- end -}}
......@@ -40,25 +40,25 @@
{{ $h2s := partial "H2Extract" .context.Content }}
{{- if and (not $h2s) (partial "GetTextFromHTML" .context.Content) }}
<li>
<a class="nav-link" href="#page-informations">{{ i18n "pages.informations" }}</a>
<a href="#page-informations">{{ i18n "pages.informations" }}</a>
</li>
{{ end -}}
{{- range $index, $h2 := $h2s }}
<li>
<a class="nav-link" href="#page-h2-{{$index}}">{{ plainify $h2 }}</a>
<a href="#page-h2-{{$index}}">{{ plainify $h2 }}</a>
</li>
{{ end -}}
{{- if .context.Pages }}
<li>
<a class="nav-link" href="#page-children">{{ i18n "pages.details" }}</a>
<a href="#page-children">{{ i18n "pages.details" }}</a>
</li>
{{ end -}}
{{- if .category.Pages }}
<li>
<a class="nav-link" href="#page-posts">{{ i18n "pages.posts" }}</a>
<a href="#page-posts">{{ i18n "pages.posts" }}</a>
</li>
{{ end -}}
......
......@@ -4,12 +4,12 @@
<ol>
{{- if and (not $h2s) (partial "GetTextFromHTML" .Content) }}
<li>
<a class="nav-link" href="#page-informations">{{ i18n "pages.informations" }}</a>
<a href="#page-informations">{{ i18n "pages.informations" }}</a>
</li>
{{ end -}}
{{- range $index, $h2 := $h2s }}
<li>
<a class="nav-link" href="#page-h2-{{$index}}">{{ plainify $h2 }}</a>
<a href="#page-h2-{{$index}}">{{ plainify $h2 }}</a>
</li>
{{- end -}}
{{- partial "blocks/toc.html" .Params.blocks -}}
......
......@@ -2,19 +2,19 @@
<nav class="toc" id="nav-toc" aria-label="{{ i18n "commons.toc" }}">
<ol>
<li>
<a class="nav-link" href="#essential">{{ i18n "programs.toc.essential" }}</a>
<a href="#essential">{{ i18n "programs.toc.essential" }}</a>
</li>
<li>
<a class="nav-link" href="#presentation">{{ i18n "programs.toc.presentation" }}</a>
<a href="#presentation">{{ i18n "programs.toc.presentation" }}</a>
</li>
<li>
<a class="nav-link" href="#pedagogy">{{ i18n "programs.toc.pedagogy" }}</a>
<a href="#pedagogy">{{ i18n "programs.toc.pedagogy" }}</a>
</li>
<li>
<a class="nav-link" href="#results">{{ i18n "programs.toc.results" }}</a>
<a href="#results">{{ i18n "programs.toc.results" }}</a>
</li>
<li>
<a class="nav-link" href="#admission">{{ i18n "programs.toc.admission" }}</a>
<a href="#admission">{{ i18n "programs.toc.admission" }}</a>
</li>
</ol>
</nav>
......@@ -3,7 +3,7 @@
{{ range site.Sections }}
{{ if ne .Type "sitemap" }}
<li>
<a class="nav-link" href="#{{ .Type }}">{{ safeHTML .Title }}</a>
<a href="#{{ .Type }}">{{ safeHTML .Title }}</a>
</li>
{{ end }}
{{ 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