From 312604c30f4f32352865a2640691cf63eda4316c Mon Sep 17 00:00:00 2001 From: LeahWilleke Date: Fri, 17 Apr 2020 17:22:04 -0600 Subject: R Site config now specifies which sections to include. --- exampleSite/config.toml | 2 ++ 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" . }} -- cgit v1.2.3