Add custom_js site param for enabling custom js (#182)
* Add custom_js site param for enabling custom js I've hit that when adding Cookie Consent on my web page. https://github.com/insites/cookieconsent * PR Remarks - added Custom JS into exampleSite * Update layouts/_default/baseof.html Co-Authored-By: Luiz F. A. de Prá <luizdepra@users.noreply.github.com> * Update CONTRIBUTORS.md
This commit is contained in:
parent
7b4f19f1cd
commit
b54ec3d45b
|
@ -37,3 +37,4 @@
|
||||||
- [D_DAndrew](https://d-dandrew.github.io)
|
- [D_DAndrew](https://d-dandrew.github.io)
|
||||||
- [Wataru Mizukami](https://github.com/tarumzu)
|
- [Wataru Mizukami](https://github.com/tarumzu)
|
||||||
- [Yudi Widiyanto](https://github.com/yudiwdynto)
|
- [Yudi Widiyanto](https://github.com/yudiwdynto)
|
||||||
|
- [Łukasz Mróz](https://github.com/mrozlukasz)
|
||||||
|
|
|
@ -41,6 +41,9 @@ disqusShortname = "yourdiscussshortname"
|
||||||
|
|
||||||
# Custom CSS
|
# Custom CSS
|
||||||
custom_css = []
|
custom_css = []
|
||||||
|
|
||||||
|
# Custom JS
|
||||||
|
custom_js = []
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
category = "categories"
|
category = "categories"
|
||||||
|
|
|
@ -60,9 +60,13 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Site.Params.custom_css }}
|
{{ range .Site.Params.custom_css }}
|
||||||
<link rel="stylesheet" href="{{ . | relURL }}">
|
<link rel="stylesheet" href="{{ . | relURL }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{ range .Site.Params.custom_js }}
|
||||||
|
<script src="{{ . | relURL }}"></script>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
|
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_32 | default "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
|
||||||
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
|
<link rel="icon" type="image/png" href="{{ .Site.Params.favicon_16 | default "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue