feat: Modifie le nom des liens

This commit is contained in:
Simon 2020-03-09 16:19:02 +01:00
parent 4154664d69
commit f5122df4c7
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
{{ $pages := .Resources.ByType "page" }}
{{ range sort $pages "Params.weight" }}
<div class="bg{{if isset .Params "bg_colored" }} colored{{end}}">
{{ with .File }}<p id="ancre_{{ .BaseFileName }}" class="ancre" />{{ end }}
{{ with .File }}<p id="_{{ .BaseFileName }}" class="ancre" />{{ end }}
<div class="container">
{{ .Content }}
</div>

View File

@ -10,7 +10,7 @@
{{ range sort $pages "Params.weight" }}
{{ if .Title }}
<li>
<a class="navigation-lien" href="#ancre_{{ .File.BaseFileName }}">{{ .Title }}</a>
<a class="navigation-lien" href="#_{{ .File.BaseFileName }}">{{ .Title }}</a>
</li>
{{ end }}
{{ end }}