Add custom JS support. CLose #42
This commit is contained in:
parent
2b180e6bae
commit
862a606590
@ -15,6 +15,7 @@ Anubis is a simple minimalist theme for [Hugo blog engine](https://gohugo.io/).
|
|||||||
- Disqus
|
- Disqus
|
||||||
- RSS feeds
|
- RSS feeds
|
||||||
- Translations (en, ru, fr, pl)
|
- Translations (en, ru, fr, pl)
|
||||||
|
- Custom CSS/JS
|
||||||
- Multilingual mode
|
- Multilingual mode
|
||||||
- Robots.txt
|
- Robots.txt
|
||||||
- Favorite posts
|
- Favorite posts
|
||||||
@ -60,6 +61,8 @@ params:
|
|||||||
- images/og-featured.png # relative path to "static" directory
|
- images/og-featured.png # relative path to "static" directory
|
||||||
customCSS:
|
customCSS:
|
||||||
- css/my.css # relative path to "static" directory
|
- css/my.css # relative path to "static" directory
|
||||||
|
customJS:
|
||||||
|
- js/main.js # relative path to "static" directory
|
||||||
dateFormat: "2006-01-02"
|
dateFormat: "2006-01-02"
|
||||||
paginationSinglePost: true
|
paginationSinglePost: true
|
||||||
style: light-without-switcher
|
style: light-without-switcher
|
||||||
|
@ -22,6 +22,10 @@
|
|||||||
<link rel="stylesheet" href="{{ . | absURL }}?rnd={{ now.Unix }}">
|
<link rel="stylesheet" href="{{ . | absURL }}?rnd={{ now.Unix }}">
|
||||||
{{- end }}
|
{{- 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/opengraph.html" . }}
|
||||||
{{ template "_internal/twitter_cards.html" . }}
|
{{ template "_internal/twitter_cards.html" . }}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user