diff options
author | LeahWilleke <ellie.willeke@gmail.com> | 2020-04-18 02:22:04 +0300 |
---|---|---|
committer | LeahWilleke <ellie.willeke@gmail.com> | 2020-04-18 02:22:04 +0300 |
commit | 312604c30f4f32352865a2640691cf63eda4316c (patch) | |
tree | 8da6700b7e7f75c3cf39696d0b36f1b44217aba0 | |
parent | 09f31ecb6ebeaab739559eccb8f7559088169974 (diff) |
R Site config now specifies which sections to include.
-rwxr-xr-x | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | layouts/index.html | 19 |
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> |