summaryrefslogtreecommitdiffstats
path: root/layouts/partials/head.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-29 23:36:18 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-29 23:36:18 +0200
commit6a7082eab5f4bfa1912ce0ec4d7e790ecf3bbcc6 (patch)
treedc826aa41a1573906c1377971a3aabf9f2059ba1 /layouts/partials/head.html
parent6d98543832e4a339f2b386eafb8f091d877b0d3f (diff)
downloadgohugo-theme-ed-6a7082eab5f4bfa1912ce0ec4d7e790ecf3bbcc6.tar.gz
Provide ability to include custom scripts in the them
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 14cd475..39e3255 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -14,7 +14,7 @@
{{ hugo.Generator }}
{{- partial "styles.html" . }}
- {{- partial "custom-scripts.html" . }}
+ {{ block "custom-scripts" . }}{{ partial "custom-scripts.html" . }}{{ end }}
{{- /* Favicons */}}
<link rel="icon" href="{{ site.Params.assets.favicon | default "favicon.ico" | relURL }}" sizes="any"><!-- 32×32 -->
@@ -28,7 +28,7 @@
<link rel="alternate" hreflang="{{ .Lang }}" href="{{ .Permalink }}">
{{ end -}}
- {{- partial "custom-head.html" . -}}
+ {{ block "custom-head" . }}{{ partial "custom-head.html" . }}{{ end }}
{{- /* Misc */}}
{{ template "partials/templates/opengraph.html" . }}