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

github.com/radity/raditian-free-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorselmanceker <32300911+selmanceker@users.noreply.github.com>2020-05-06 12:11:59 +0300
committerGitHub <noreply@github.com>2020-05-06 12:11:59 +0300
commitdcf11b38f3e1efe11a205dfc9718004673f81fce (patch)
tree9b57e1822e11715b1c344fc477bc0408ba52c59d
parent9ddec03aaefeb3154d4dd38b1170cb77d2312ec7 (diff)
parent312604c30f4f32352865a2640691cf63eda4316c (diff)
Merge pull request #5 from LeahWilleke/allow-variable-sections
Site config now specifies which sections to include.
-rwxr-xr-xexampleSite/config.toml2
-rw-r--r--layouts/index.html19
2 files changed, 5 insertions, 16 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 00f7558..62fce20 100755
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -59,6 +59,8 @@ theme = "raditian-free-hugo-theme"
[params]
+ sections = ["showcase", "about", "education", "experience", "client-and-work", "testimonial", "contact", "newsletter"]
+
googleTagManagerID = "GTM-000000" # Google Analytics works with Google Tag Manager
[params.logo]
diff --git a/layouts/index.html b/layouts/index.html
index c1df43c..d894949 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -14,24 +14,11 @@
{{ partial "header.html" . }}
- {{ partial "showcase.html" . }}
-
- {{ partial "about.html" . }}
-
- {{ partial "education.html" . }}
-
- {{ partial "experience.html" . }}
-
- {{ partial "client-and-work.html" . }}
-
- {{ partial "testimonial.html" . }}
-
- {{ partial "contact.html" . }}
-
- {{ partial "newsletter.html" . }}
+ {{ range .Site.Params.sections }}
+ {{ partial . $ }}
+ {{ end }}
{{ partial "footer.html" . }}
-
{{ partial "base-foot.html" . }}
</body>