Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customJS #143

Merged
merged 2 commits into from Aug 19, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -77,6 +77,7 @@ googleAnalytics = "" # Enable Google Analytics by entering your tracking id
#mathjaxConfig = "TeX-AMS-MML_HTMLorMML" # Specify MathJax config
#highlightColor = "#e22d30" # Override highlight color
customCSS = ["css/custom.css"] # Include custom CSS files
customJS = ["js/custom.js"] # Include custom JS files

[Params.sidebar]
home = "right" # Configure layout for home page
Expand Down
3 changes: 3 additions & 0 deletions layouts/_default/baseof.html
Expand Up @@ -43,6 +43,9 @@
{{ partial "footer" . }}
</div>
<script async defer src="{{ "js/menu.js" | relURL }}"></script>
{{ range .Site.Params.customJS -}}
<script async defer src="{{ . | relURL }}"></script>
oshliaer marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
{{- partial "mathjax.html" . -}}
</body>
</html>