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

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kolosov <mitrichius@gmail.com>2020-07-09 22:42:23 +0300
committerDmitry Kolosov <mitrichius@gmail.com>2020-07-09 22:42:23 +0300
commit862a606590b3e5d7ad8f589fe78ca889c235301e (patch)
tree77b1176ad6fc9da67b035341ccbfe2e962d968ad /layouts/partials/head.html
parent2b180e6bae3ee2df4d7efe67695898770e984acc (diff)
Add custom JS support. CLose #42
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index b3e1d6d..93b3731 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -22,6 +22,10 @@
<link rel="stylesheet" href="{{ . | absURL }}?rnd={{ now.Unix }}">
{{- end }}
+{{ range .Site.Params.customJS -}}
+<script src="{{ . | absURL }}?rnd={{ now.Unix }}" type="text/javascript" charset="utf-8"></script>
+{{- end }}
+
{{ template "_internal/opengraph.html" . }}
{{ template "_internal/twitter_cards.html" . }}