Theme Files Update
This commit is contained in:
parent
9cb8a5f2fc
commit
7fdf67fab5
2 changed files with 25 additions and 13 deletions
|
@ -3,15 +3,17 @@ MathJax = {
|
||||||
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
inlineMath: [['$', '$'], ['\\(', '\\)']],
|
||||||
displayMath: [['$$', '$$'], ['\\[', '\\]']],
|
displayMath: [['$$', '$$'], ['\\[', '\\]']],
|
||||||
processEscapes: true,
|
processEscapes: true,
|
||||||
processEnvironments: true
|
processEnvironments: true,
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
|
skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
|
||||||
enableMenu: false
|
enableMenu: false
|
||||||
}
|
},
|
||||||
|
svg: {fontCache: 'global'}
|
||||||
};
|
};
|
||||||
|
|
||||||
window.addEventListener('load', (event) => {
|
window.addEventListener('load', (event) => {
|
||||||
document.querySelectorAll("mjx-container").forEach(function (x) {
|
document.querySelectorAll("mjx-container").forEach(function (x) {
|
||||||
x.parentElement.classList += 'has-jax'})
|
x.parentElement.classList += 'has-jax'
|
||||||
|
})
|
||||||
});
|
});
|
22
hugo.toml
22
hugo.toml
|
@ -76,9 +76,6 @@ enableEmoji = true
|
||||||
|
|
||||||
homeSubtitle = "A minimal and fast theme for Hugo."
|
homeSubtitle = "A minimal and fast theme for Hugo."
|
||||||
|
|
||||||
# Below Allows homeSubtitle to be shown with printer animation effect. Refer Line 911 in style.scss
|
|
||||||
homeSubtitlePrinter = true
|
|
||||||
|
|
||||||
footerCopyright = ' · <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
|
footerCopyright = ' · <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
|
||||||
# bgImg = "" # Homepage background-image URL
|
# bgImg = "" # Homepage background-image URL
|
||||||
|
|
||||||
|
@ -95,14 +92,27 @@ enableEmoji = true
|
||||||
# Add custom css
|
# Add custom css
|
||||||
# customCSS = ["css/foo.css", "css/bar.css"]
|
# customCSS = ["css/foo.css", "css/bar.css"]
|
||||||
|
|
||||||
scrollToTop = true # To enable Scroll to Top button Sitewide
|
# Social Icons
|
||||||
|
# Check https://github.com/Track3/hermit#social-icons for more info.
|
||||||
|
|
||||||
|
# ---------------------------------------------------
|
||||||
|
# Hugo - V2 specific configurations
|
||||||
|
# ---------------------------------------------------
|
||||||
|
|
||||||
|
# Below Allows homeSubtitle to be shown with printer animation effect. Refer Line 911 in style.scss
|
||||||
|
homeSubtitlePrinter = true
|
||||||
|
|
||||||
|
# To enable Scroll to Top button Sitewide
|
||||||
|
scrollToTop = true
|
||||||
|
|
||||||
# Enable global_mathjax to true, if you want MathJax support sitewide (if you have technical page)
|
# Enable global_mathjax to true, if you want MathJax support sitewide (if you have technical page)
|
||||||
# You can enable Per-Page MathJax support by adding `mathjax : true` in Page frontmatter
|
# You can enable Per-Page MathJax support by adding `mathjax : true` in Page frontmatter
|
||||||
global_mathjax = false
|
global_mathjax = false
|
||||||
|
|
||||||
# Social Icons
|
# ---------------------------------------------------
|
||||||
# Check https://github.com/Track3/hermit#social-icons for more info.
|
# Hugo - V2 specific configurations end
|
||||||
|
# ---------------------------------------------------
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "twitter"
|
name = "twitter"
|
||||||
url = "https://twitter.com/"
|
url = "https://twitter.com/"
|
||||||
|
|
Loading…
Reference in a new issue