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

gitlab.com/mertbakir/resume-a4.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/section.html')
-rw-r--r--layouts/partials/section.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/section.html b/layouts/partials/section.html
new file mode 100644
index 0000000..e8eba85
--- /dev/null
+++ b/layouts/partials/section.html
@@ -0,0 +1,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>