mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 13:59:44 +01:00
parent
ce4028226f
commit
37ecc69ecc
2 changed files with 52 additions and 15 deletions
|
@ -1,23 +1,32 @@
|
|||
# Remove this if your site folder is not inside the theme folder
|
||||
themesDir = "../../"
|
||||
|
||||
canonifyurls = true
|
||||
baseurl = "https://slashformotion.github.io/hugo-tufte/"
|
||||
# Set your theme here
|
||||
theme = "hugo-tufte"
|
||||
# The url of your website
|
||||
baseurl = "https://slashformotion.github.io/hugo-tufte/"
|
||||
# The title of your website (shown on all the pages)
|
||||
title = "Hugo-tufte Theme Example Site"
|
||||
pygmentsUseClasses=true
|
||||
[taxonomies]
|
||||
category = "categories"
|
||||
group = "groups"
|
||||
series = "series"
|
||||
tag = "tags"
|
||||
# Site wide kill switch for Latex support
|
||||
math = true
|
||||
# (If math is enabled)
|
||||
## if "katex" is set to true katex will be used to render LaTex, if not MathJax will be used instead
|
||||
katex = false
|
||||
|
||||
[params]
|
||||
math = true
|
||||
# Subtitle of the website
|
||||
subtitle = "Subtitle goes here."
|
||||
# Your name or the name of you company
|
||||
copyrightHolder = "Copyright Holder"
|
||||
# Show the "Powered by Hugo-Tufte and Hugo."
|
||||
showPoweredBy = true
|
||||
# Site wide kill switch
|
||||
hidedate = false
|
||||
|
||||
[taxonomies]
|
||||
category = "categories"
|
||||
series = "series"
|
||||
tag = "tags"
|
||||
# -----------------------------------------------------------------------
|
||||
# Navigation menu
|
||||
# -----------------------------------------------------------------------
|
||||
|
@ -63,8 +72,11 @@ pygmentsUseClasses=true
|
|||
url = "https://twitter.com"
|
||||
|
||||
|
||||
|
||||
# Don't change the settings below
|
||||
[markup]
|
||||
[markup.goldmark]
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
unsafe = true # make the shortcodes work
|
||||
|
||||
pygmentsUseClasses=true
|
||||
canonifyurls = true
|
|
@ -1,4 +1,29 @@
|
|||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js"></script>
|
||||
|
||||
{{ if .Params.katex }}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.js"></script>
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/contrib/auto-render.min.js"></script>
|
||||
<script>
|
||||
renderMathInElement(
|
||||
document.body,
|
||||
{
|
||||
delimiters: [
|
||||
{ left: "$$", right: "$$", display: true },
|
||||
{ left: "\\[", right: "\\]", display: true },
|
||||
{ left: "$", right: "$", display: false },
|
||||
{ left: "\\(", right: "\\)", display: false }
|
||||
],
|
||||
displayMode: true
|
||||
}
|
||||
);
|
||||
</script>
|
||||
{{ else }}
|
||||
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
||||
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
||||
<script>
|
||||
window.MathJax = {
|
||||
tex: {
|
||||
inlineMath: [['$', '$'], ['\\(', '\\)']]
|
||||
}
|
||||
};
|
||||
</script>
|
||||
{{ end }}
|
Loading…
Reference in a new issue