feat: Modifie le nom des liens
This commit is contained in:
parent
4154664d69
commit
f5122df4c7
|
@ -3,7 +3,7 @@
|
||||||
{{ $pages := .Resources.ByType "page" }}
|
{{ $pages := .Resources.ByType "page" }}
|
||||||
{{ range sort $pages "Params.weight" }}
|
{{ range sort $pages "Params.weight" }}
|
||||||
<div class="bg{{if isset .Params "bg_colored" }} colored{{end}}">
|
<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">
|
<div class="container">
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{{ range sort $pages "Params.weight" }}
|
{{ range sort $pages "Params.weight" }}
|
||||||
{{ if .Title }}
|
{{ if .Title }}
|
||||||
<li>
|
<li>
|
||||||
<a class="navigation-lien" href="#ancre_{{ .File.BaseFileName }}">{{ .Title }}</a>
|
<a class="navigation-lien" href="#_{{ .File.BaseFileName }}">{{ .Title }}</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue