diff options
author | danielkvist <d94.zaragoza@gmail.com> | 2019-03-13 18:21:28 +0300 |
---|---|---|
committer | danielkvist <d94.zaragoza@gmail.com> | 2019-03-13 18:21:50 +0300 |
commit | 2fa584f79747a883140617917432ae530c8b5320 (patch) | |
tree | 34a8366b2c8d339714b66698e26ca706dfd228cb | |
parent | f569b90bb16dbe1c7f0fdcd6d25c44786c590ad6 (diff) |
make separators between sections optional
-rw-r--r-- | exampleSite/config.toml | 5 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 4 | ||||
-rw-r--r-- | layouts/partials/sections.html | 6 | ||||
-rwxr-xr-x | 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" }} <script src="{{ $js.Permalink }}"></script> -<script defer src="https://use.fontawesome.com/releases/v5.6.1/js/all.js" integrity="sha384-R5JkiUweZpJjELPWqttAYmYM1P3SNEJRM6ecTQF05pFFtxmCO+Y1CiUhvuDzgSVZ" - crossorigin="anonymous"></script>
\ 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}} @@ -2,4 +2,4 @@ make build make docker-nc -make run
\ No newline at end of file +make run |