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

github.com/zzossig/hugo-theme-zdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/main/landing/home-sections.html')
-rw-r--r--layouts/partials/main/landing/home-sections.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/partials/main/landing/home-sections.html b/layouts/partials/main/landing/home-sections.html
new file mode 100644
index 0000000..4fd7da9
--- /dev/null
+++ b/layouts/partials/main/landing/home-sections.html
@@ -0,0 +1,15 @@
+{{ range .Params.sections }}
+ <section style="background-color: {{ .bgcolor }};">
+ <div class="divider">
+ <div class="lmr">
+ {{ if eq .type "card" }}
+ {{ partial "main/landing/section-card.html" . }}
+ {{ else if eq .type "normal" }}
+ {{ partial "main/landing/section-normal" . }}
+ {{ else }}
+ {{ printf "%#v" "Not supported type" }}
+ {{ end }}
+ </div>
+ </div>
+ </section>
+{{ end }} \ No newline at end of file