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
|
||||
- RSS feeds
|
||||
- Translations (en, ru, fr, pl)
|
||||
- Custom CSS/JS
|
||||
- Multilingual mode
|
||||
- Robots.txt
|
||||
- Favorite posts
|
||||
@ -60,6 +61,8 @@ params:
|
||||
- images/og-featured.png # relative path to "static" directory
|
||||
customCSS:
|
||||
- css/my.css # relative path to "static" directory
|
||||
customJS:
|
||||
- js/main.js # relative path to "static" directory
|
||||
dateFormat: "2006-01-02"
|
||||
paginationSinglePost: true
|
||||
style: light-without-switcher
|
||||
|
@ -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" . }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user