From 2fa584f79747a883140617917432ae530c8b5320 Mon Sep 17 00:00:00 2001 From: danielkvist Date: Wed, 13 Mar 2019 16:21:28 +0100 Subject: make separators between sections optional --- exampleSite/config.toml | 5 ++++- layouts/partials/scripts.html | 4 ++-- layouts/partials/sections.html | 6 +++++- usage.sh | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d40ac0d..9953f06 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -26,6 +26,9 @@ themesDir = "../.." # Not necessary on production sites cta = "Contact" link = "contact" # Relative URL +[params.separator] # Separator between section on the home page + show = false + [params.form] # Contact form netlify = true # Use only if you are using Netlify action = "https://formspree.io/your@email.com" @@ -90,4 +93,4 @@ themesDir = "../.." # Not necessary on production sites simple = false [privacy.youtube] disable = false - privacyEnhanced = true \ No newline at end of file + privacyEnhanced = true diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 46beb79..63e20b1 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -4,5 +4,5 @@ {{ $js := $bundle | resources.Minify | resources.Fingerprint "sha512" }} - \ No newline at end of file + +{{ partial "fontawesome.html" . }} diff --git a/layouts/partials/sections.html b/layouts/partials/sections.html index 6d4cfc3..2fc5b87 100644 --- a/layouts/partials/sections.html +++ b/layouts/partials/sections.html @@ -5,6 +5,10 @@ {{ partial "section.html" .}} {{ if ne (add $i 1) $len }} + +{{ if $.Site.Params.separator.show }} {{ partial "separator.html" . }} +{{ end }} + {{ end }} -{{ end}} \ No newline at end of file +{{ end}} diff --git a/usage.sh b/usage.sh index 23d8d60..7926357 100755 --- a/usage.sh +++ b/usage.sh @@ -2,4 +2,4 @@ make build make docker-nc -make run \ No newline at end of file +make run -- cgit v1.2.3