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

github.com/uicardiodev/hugo-lime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..48a15b7
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,18 @@
+{{ .Scratch.Set "navbarType" "transparent" }}
+
+{{ partial "header.html" . }}
+{{ partial "nav.html" . }}
+
+<!-- Loading the components -->
+{{ $globalData := . }}
+{{ $components := .Site.Data.config.components }}
+{{ range $components }}
+ {{ if gt (len $components) 0 }}
+ {{ partial ( printf "%s.html" .) $globalData }}
+ {{ else }}
+ <h3 class="text-center">Oops! There is no component registered in config.json file</h3>
+ {{ end }}
+{{ end }}
+
+{{ partial "footer.html" . }}
+{{ partial "footer-end.html" . }} \ No newline at end of file