From 7fdf67fab50430359483cc1efefc6a805afb04a8 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 14 Sep 2023 15:11:16 +0000 Subject: [PATCH] Theme Files Update --- assets/js/mathjax/mathjax-assistant.js | 16 +++++++++------- hugo.toml | 22 ++++++++++++++++------ 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/assets/js/mathjax/mathjax-assistant.js b/assets/js/mathjax/mathjax-assistant.js index 1b14471..cf28017 100644 --- a/assets/js/mathjax/mathjax-assistant.js +++ b/assets/js/mathjax/mathjax-assistant.js @@ -1,17 +1,19 @@ MathJax = { tex: { inlineMath: [['$', '$'], ['\\(', '\\)']], - displayMath: [['$$','$$'], ['\\[', '\\]']], + displayMath: [['$$', '$$'], ['\\[', '\\]']], processEscapes: true, - processEnvironments: true + processEnvironments: true, }, options: { skipHtmlTags: ['script', 'noscript', 'style', 'textarea', 'pre'], enableMenu: false - } + }, + svg: {fontCache: 'global'} }; - window.addEventListener('load', (event) => { - document.querySelectorAll("mjx-container").forEach(function(x){ - x.parentElement.classList += 'has-jax'}) - }); \ No newline at end of file +window.addEventListener('load', (event) => { + document.querySelectorAll("mjx-container").forEach(function (x) { + x.parentElement.classList += 'has-jax' + }) +}); \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 0373b02..352da4e 100644 --- a/hugo.toml +++ b/hugo.toml @@ -76,9 +76,6 @@ enableEmoji = true 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 = ' · CC BY-NC 4.0' # bgImg = "" # Homepage background-image URL @@ -95,14 +92,27 @@ enableEmoji = true # Add custom 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) # You can enable Per-Page MathJax support by adding `mathjax : true` in Page frontmatter global_mathjax = false - # Social Icons - # Check https://github.com/Track3/hermit#social-icons for more info. + # --------------------------------------------------- + # Hugo - V2 specific configurations end + # --------------------------------------------------- + [[params.social]] name = "twitter" url = "https://twitter.com/"