Introduction du nouveau thème
This commit is contained in:
6
themes/42/layouts/_partials/link-section.html
Normal file
6
themes/42/layouts/_partials/link-section.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ if and (.Parent) (ne .Parent.RelPermalink "/") }}
|
||||
{{- $sectionPath := path.Base .Parent.File.Dir -}}
|
||||
<a href="{{ .Parent.RelPermalink }}" title="Retour à la section {{ .Parent.LinkTitle }}" class="section-{{ $sectionPath }}">
|
||||
{{ or .Parent.LinkTitle "Section" }}
|
||||
</a>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user