diff options
author | Dmitry Kolosov <mitrichius@gmail.com> | 2020-07-09 22:42:23 +0300 |
---|---|---|
committer | Dmitry Kolosov <mitrichius@gmail.com> | 2020-07-09 22:42:23 +0300 |
commit | 862a606590b3e5d7ad8f589fe78ca889c235301e (patch) | |
tree | 77b1176ad6fc9da67b035341ccbfe2e962d968ad /layouts/partials/head.html | |
parent | 2b180e6bae3ee2df4d7efe67695898770e984acc (diff) |
Add custom JS support. CLose #42
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r-- | layouts/partials/head.html | 4 |
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" . }} |