Welcome to mirror list, hosted at ThFree Co, Russian Federation.

section.html « partials « layouts - gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e8eba85a5b5b04952c6483c436fbbdb84e1e5d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<div class="section section-{{ .Feature.feature }}">
	{{- if or (not (isset .Feature "title")) .Feature.title -}}
	<h1 class="section-title">{{ .Feature.title | default (title .Feature.feature) }}</h1>
	{{- end -}}
	{{- $partial := (printf "section-%s.html" (default .Feature.feature .Feature.widget)) -}}
	{{- $collection := index .Data (default "features" .Feature.collection) -}}
	{{- if and (not (templates.Exists (printf "partials/%s" $partial))) (isset $collection .Feature.feature) -}}
	{{ partial "section-details-list.html" . }}
	{{- else -}}
	{{ partial $partial . }}
	{{- end -}}
</div>