Introduction du nouveau thème
This commit is contained in:
19
themes/42/layouts/_partials/home-section.html
Normal file
19
themes/42/layouts/_partials/home-section.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{- $section := .Section -}}
|
||||
{{- $sectionPages := default (slice) .SectionPages -}}
|
||||
{{- $title := .Title -}}
|
||||
{{- $context := default . .Context -}}
|
||||
|
||||
<section>
|
||||
<header>
|
||||
{{- with $section -}}
|
||||
{{- partial "breadcrumbs.html" . -}}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ with .LinkTitle }}{{ . }}{{ else }}{{ .Title }}{{ end }}</a></h2>
|
||||
{{- else -}}
|
||||
{{- with $title -}}
|
||||
<h2>{{ . }}</h2>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</header>
|
||||
{{- partial "articles-list.html" (dict "Pages" $sectionPages "Context" $context) -}}
|
||||
</section>
|
||||
<hr />
|
||||
Reference in New Issue
Block a user