Nettoyage et tri des mots-clé
This commit is contained in:
@@ -23,14 +23,6 @@
|
|||||||
</section>
|
</section>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with $ctx.Params.keywords }}
|
|
||||||
{{- if gt (len .) 0 }}
|
|
||||||
<section>
|
|
||||||
<h2>Mots-clés</h2>
|
|
||||||
{{- partial "keywords.html" . }}
|
|
||||||
</section>
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
</details>
|
</details>
|
||||||
</aside>
|
</aside>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{{- $items := . -}}
|
{{- $items := . -}}
|
||||||
{{- if gt (len $items) 0 -}}
|
{{- if gt (len $items) 0 -}}
|
||||||
<ul class="keywords">
|
<ul class="keywords">
|
||||||
{{- range $items }}
|
{{- range (sort $items "Title") }}
|
||||||
{{- $type := printf "%T" . -}}
|
{{- $type := printf "%T" . -}}
|
||||||
{{- if or (strings.HasPrefix $type "*hugolib.") (strings.HasPrefix $type "page.") }}
|
{{- if or (strings.HasPrefix $type "*hugolib.") (strings.HasPrefix $type "page.") }}
|
||||||
<li><a href="{{ .RelPermalink }}">{{ with .LinkTitle }}{{ . }}{{ else }}{{ .Title }}{{ end }}</a></li>
|
<li><a href="{{ .RelPermalink }}">{{ with .LinkTitle }}{{ . }}{{ else }}{{ .Title }}{{ end }}</a></li>
|
||||||
|
|||||||
Reference in New Issue
Block a user