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

github.com/danielkvist/hugo-terrassa-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2019-03-13 18:21:28 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2019-03-13 18:21:50 +0300
commit2fa584f79747a883140617917432ae530c8b5320 (patch)
tree34a8366b2c8d339714b66698e26ca706dfd228cb /layouts/partials
parentf569b90bb16dbe1c7f0fdcd6d25c44786c590ad6 (diff)
make separators between sections optional
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/scripts.html4
-rw-r--r--layouts/partials/sections.html6
2 files changed, 7 insertions, 3 deletions
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}}