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

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/homepage.html')
-rw-r--r--layouts/partials/homepage.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/layouts/partials/homepage.html b/layouts/partials/homepage.html
new file mode 100644
index 0000000..f8faec7
--- /dev/null
+++ b/layouts/partials/homepage.html
@@ -0,0 +1,31 @@
+{{ "<!-- HOMEPAGE.HTML -->" | safeHTML }}
+
+{{ $sections := .Site.Params.homepage.sections }}
+
+{{ if in $sections "home" }}
+ {{ partial "sections/home.html" . }}
+{{ end }}
+
+{{ if in $sections "about" }}
+ {{ partial "sections/about.html" . }}
+{{ end }}
+
+{{ if in $sections "services" }}
+ {{ partial "sections/services.html" . }}
+{{ end }}
+
+{{ if in $sections "skills" }}
+ {{ partial "sections/skills.html" . }}
+{{ end }}
+
+{{ if in $sections "projects" }}
+ {{ range .Site.Params.projects.categories }}
+ {{ with $.Site.GetPage "section" . }}
+ {{ partial "sections/projects.html" . }}
+ {{ end }}
+ {{ end }}
+{{ end }}
+
+{{ if in $sections "contact" }}
+ {{ partial "sections/contact.html" . }}
+{{ end }}