-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hugo relURL fix for CSS and JS paths (#1127)
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,11 +24,11 @@ | |
<script src="https://cdn.jsdelivr.net/npm/markmap-autoloader"></script> | ||
{{ end }} | ||
|
||
<script src='{{ "/js/tabpane-persist.js" | relURL }}'></script> | ||
<script src='{{ "js/tabpane-persist.js" | relURL }}'></script> | ||
|
||
<!-- load the deflate.js for plantuml support --> | ||
{{ if .Site.Params.plantuml.enable }} | ||
<script src='{{ "/js/deflate.js" | relURL }}'></script> | ||
<script src='{{ "js/deflate.js" | relURL }}'></script> | ||
{{ end }} | ||
|
||
<!-- load stylesheet and scripts for KaTeX support --> | ||
|
@@ -48,7 +48,7 @@ | |
{{ end }} | ||
<!-- To automatically render math in text elements, include the auto-render extension: --> | ||
<script defer src='https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js' | ||
integrity='sha512-ZA/RPrAo88DlwRnnoNVqKINnQNcWERzRK03PDaA4GIJiVZvGFIWQbdWCsUebMZfkWohnfngsDjXzU6PokO4jGw==' crossorigin='anonymous' | ||
integrity='sha512-ZA/RPrAo88DlwRnnoNVqKINnQNcWERzRK03PDaA4GIJiVZvGFIWQbdWCsUebMZfkWohnfngsDjXzU6PokO4jGw==' crossorigin='anonymous' | ||
{{ printf "onload='renderMathInElement(%s, %s);'" (( .Site.Params.katex.html_dom_element | default "document.body" ) | safeJS ) ( printf "%s" ( $.Site.Params.katex.options | jsonify )) | safeHTMLAttr }}></script> | ||
{{ end }} | ||
|
||
|
@@ -71,6 +71,6 @@ | |
{{ end }} | ||
{{ if .Site.Params.prism_syntax_highlighting }} | ||
<!-- scripts for prism --> | ||
<script src='{{ "/js/prism.js" | relURL }}'></script> | ||
<script src='{{ "js/prism.js" | relURL }}'></script> | ||
{{ end }} | ||
{{ partial "hooks/body-end.html" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters