From dbdf78b5fe7a184a3eb0edb4652c76db8e4a5c09 Mon Sep 17 00:00:00 2001 From: Niklas Buschmann Date: Sun, 28 Feb 2021 21:34:43 +0100 Subject: [PATCH] merge upstream --- README.md | 1 + layouts/_default/baseof.html | 8 +- layouts/_default/list.html | 25 +- layouts/partials/math.html | 6 +- static/css/index.css | 37 +- static/css/minimal.css | 37 +- static/katex/README.md | 91 + static/katex/contrib/auto-render.js | 350 + static/katex/contrib/auto-render.min.js | 1 + static/katex/contrib/auto-render.mjs | 226 + static/katex/contrib/copy-tex.css | 14 + static/katex/contrib/copy-tex.js | 213 + static/katex/contrib/copy-tex.min.css | 1 + static/katex/contrib/copy-tex.min.js | 1 + static/katex/contrib/copy-tex.mjs | 85 + static/katex/contrib/mathtex-script-type.js | 137 + .../katex/contrib/mathtex-script-type.min.js | 1 + static/katex/contrib/mathtex-script-type.mjs | 24 + static/katex/contrib/mhchem.js | 3241 +++ static/katex/contrib/mhchem.min.js | 1 + static/katex/contrib/mhchem.mjs | 3109 +++ static/katex/contrib/render-a11y-string.js | 870 + .../katex/contrib/render-a11y-string.min.js | 1 + static/katex/contrib/render-a11y-string.mjs | 753 + static/katex/fonts/KaTeX_AMS-Regular.ttf | Bin 0 -> 70936 bytes static/katex/fonts/KaTeX_AMS-Regular.woff | Bin 0 -> 36912 bytes static/katex/fonts/KaTeX_AMS-Regular.woff2 | Bin 0 -> 31136 bytes static/katex/fonts/KaTeX_Caligraphic-Bold.ttf | Bin 0 -> 15416 bytes .../katex/fonts/KaTeX_Caligraphic-Bold.woff | Bin 0 -> 9376 bytes .../katex/fonts/KaTeX_Caligraphic-Bold.woff2 | Bin 0 -> 8392 bytes .../katex/fonts/KaTeX_Caligraphic-Regular.ttf | Bin 0 -> 14908 bytes .../fonts/KaTeX_Caligraphic-Regular.woff | Bin 0 -> 9148 bytes .../fonts/KaTeX_Caligraphic-Regular.woff2 | Bin 0 -> 8248 bytes static/katex/fonts/KaTeX_Fraktur-Bold.ttf | Bin 0 -> 24400 bytes static/katex/fonts/KaTeX_Fraktur-Bold.woff | Bin 0 -> 16208 bytes static/katex/fonts/KaTeX_Fraktur-Bold.woff2 | Bin 0 -> 13912 bytes static/katex/fonts/KaTeX_Fraktur-Regular.ttf | Bin 0 -> 23904 bytes static/katex/fonts/KaTeX_Fraktur-Regular.woff | Bin 0 -> 15880 bytes .../katex/fonts/KaTeX_Fraktur-Regular.woff2 | Bin 0 -> 13668 bytes static/katex/fonts/KaTeX_Main-Bold.ttf | Bin 0 -> 59972 bytes static/katex/fonts/KaTeX_Main-Bold.woff | Bin 0 -> 35056 bytes static/katex/fonts/KaTeX_Main-Bold.woff2 | Bin 0 -> 29932 bytes static/katex/fonts/KaTeX_Main-BoldItalic.ttf | Bin 0 -> 42872 bytes static/katex/fonts/KaTeX_Main-BoldItalic.woff | Bin 0 -> 24500 bytes .../katex/fonts/KaTeX_Main-BoldItalic.woff2 | Bin 0 -> 21244 bytes static/katex/fonts/KaTeX_Main-Italic.ttf | Bin 0 -> 46028 bytes static/katex/fonts/KaTeX_Main-Italic.woff | Bin 0 -> 25352 bytes static/katex/fonts/KaTeX_Main-Italic.woff2 | Bin 0 -> 22076 bytes static/katex/fonts/KaTeX_Main-Regular.ttf | Bin 0 -> 68880 bytes static/katex/fonts/KaTeX_Main-Regular.woff | Bin 0 -> 37856 bytes static/katex/fonts/KaTeX_Main-Regular.woff2 | Bin 0 -> 32312 bytes static/katex/fonts/KaTeX_Math-BoldItalic.ttf | Bin 0 -> 42300 bytes static/katex/fonts/KaTeX_Math-BoldItalic.woff | Bin 0 -> 23980 bytes .../katex/fonts/KaTeX_Math-BoldItalic.woff2 | Bin 0 -> 21192 bytes static/katex/fonts/KaTeX_Math-Italic.ttf | Bin 0 -> 44484 bytes static/katex/fonts/KaTeX_Math-Italic.woff | Bin 0 -> 24668 bytes static/katex/fonts/KaTeX_Math-Italic.woff2 | Bin 0 -> 21668 bytes static/katex/fonts/KaTeX_SansSerif-Bold.ttf | Bin 0 -> 32588 bytes static/katex/fonts/KaTeX_SansSerif-Bold.woff | Bin 0 -> 17988 bytes static/katex/fonts/KaTeX_SansSerif-Bold.woff2 | Bin 0 -> 15296 bytes static/katex/fonts/KaTeX_SansSerif-Italic.ttf | Bin 0 -> 29860 bytes .../katex/fonts/KaTeX_SansSerif-Italic.woff | Bin 0 -> 17044 bytes .../katex/fonts/KaTeX_SansSerif-Italic.woff2 | Bin 0 -> 14484 bytes .../katex/fonts/KaTeX_SansSerif-Regular.ttf | Bin 0 -> 28708 bytes .../katex/fonts/KaTeX_SansSerif-Regular.woff | Bin 0 -> 15712 bytes .../katex/fonts/KaTeX_SansSerif-Regular.woff2 | Bin 0 -> 13300 bytes static/katex/fonts/KaTeX_Script-Regular.ttf | Bin 0 -> 23520 bytes static/katex/fonts/KaTeX_Script-Regular.woff | Bin 0 -> 12992 bytes static/katex/fonts/KaTeX_Script-Regular.woff2 | Bin 0 -> 11792 bytes static/katex/fonts/KaTeX_Size1-Regular.ttf | Bin 0 -> 11932 bytes static/katex/fonts/KaTeX_Size1-Regular.woff | Bin 0 -> 6300 bytes static/katex/fonts/KaTeX_Size1-Regular.woff2 | Bin 0 -> 5332 bytes static/katex/fonts/KaTeX_Size2-Regular.ttf | Bin 0 -> 11080 bytes static/katex/fonts/KaTeX_Size2-Regular.woff | Bin 0 -> 6012 bytes static/katex/fonts/KaTeX_Size2-Regular.woff2 | Bin 0 -> 5080 bytes static/katex/fonts/KaTeX_Size3-Regular.ttf | Bin 0 -> 7028 bytes static/katex/fonts/KaTeX_Size3-Regular.woff | Bin 0 -> 4148 bytes static/katex/fonts/KaTeX_Size3-Regular.woff2 | Bin 0 -> 3400 bytes static/katex/fonts/KaTeX_Size4-Regular.ttf | Bin 0 -> 10008 bytes static/katex/fonts/KaTeX_Size4-Regular.woff | Bin 0 -> 5820 bytes static/katex/fonts/KaTeX_Size4-Regular.woff2 | Bin 0 -> 4720 bytes .../katex/fonts/KaTeX_Typewriter-Regular.ttf | Bin 0 -> 34560 bytes .../katex/fonts/KaTeX_Typewriter-Regular.woff | Bin 0 -> 19700 bytes .../fonts/KaTeX_Typewriter-Regular.woff2 | Bin 0 -> 16868 bytes static/katex/katex.css | 1035 + static/katex/katex.js | 17308 ++++++++++++++++ static/katex/katex.min.css | 1 + static/katex/katex.min.js | 1 + static/katex/katex.mjs | 16911 +++++++++++++++ 89 files changed, 44470 insertions(+), 19 deletions(-) create mode 100644 static/katex/README.md create mode 100644 static/katex/contrib/auto-render.js create mode 100644 static/katex/contrib/auto-render.min.js create mode 100644 static/katex/contrib/auto-render.mjs create mode 100644 static/katex/contrib/copy-tex.css create mode 100644 static/katex/contrib/copy-tex.js create mode 100644 static/katex/contrib/copy-tex.min.css create mode 100644 static/katex/contrib/copy-tex.min.js create mode 100644 static/katex/contrib/copy-tex.mjs create mode 100644 static/katex/contrib/mathtex-script-type.js create mode 100644 static/katex/contrib/mathtex-script-type.min.js create mode 100644 static/katex/contrib/mathtex-script-type.mjs create mode 100644 static/katex/contrib/mhchem.js create mode 100644 static/katex/contrib/mhchem.min.js create mode 100644 static/katex/contrib/mhchem.mjs create mode 100644 static/katex/contrib/render-a11y-string.js create mode 100644 static/katex/contrib/render-a11y-string.min.js create mode 100644 static/katex/contrib/render-a11y-string.mjs create mode 100644 static/katex/fonts/KaTeX_AMS-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_AMS-Regular.woff create mode 100644 static/katex/fonts/KaTeX_AMS-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Caligraphic-Bold.ttf create mode 100644 static/katex/fonts/KaTeX_Caligraphic-Bold.woff create mode 100644 static/katex/fonts/KaTeX_Caligraphic-Bold.woff2 create mode 100644 static/katex/fonts/KaTeX_Caligraphic-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Caligraphic-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Caligraphic-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Fraktur-Bold.ttf create mode 100644 static/katex/fonts/KaTeX_Fraktur-Bold.woff create mode 100644 static/katex/fonts/KaTeX_Fraktur-Bold.woff2 create mode 100644 static/katex/fonts/KaTeX_Fraktur-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Fraktur-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Fraktur-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Main-Bold.ttf create mode 100644 static/katex/fonts/KaTeX_Main-Bold.woff create mode 100644 static/katex/fonts/KaTeX_Main-Bold.woff2 create mode 100644 static/katex/fonts/KaTeX_Main-BoldItalic.ttf create mode 100644 static/katex/fonts/KaTeX_Main-BoldItalic.woff create mode 100644 static/katex/fonts/KaTeX_Main-BoldItalic.woff2 create mode 100644 static/katex/fonts/KaTeX_Main-Italic.ttf create mode 100644 static/katex/fonts/KaTeX_Main-Italic.woff create mode 100644 static/katex/fonts/KaTeX_Main-Italic.woff2 create mode 100644 static/katex/fonts/KaTeX_Main-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Main-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Main-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Math-BoldItalic.ttf create mode 100644 static/katex/fonts/KaTeX_Math-BoldItalic.woff create mode 100644 static/katex/fonts/KaTeX_Math-BoldItalic.woff2 create mode 100644 static/katex/fonts/KaTeX_Math-Italic.ttf create mode 100644 static/katex/fonts/KaTeX_Math-Italic.woff create mode 100644 static/katex/fonts/KaTeX_Math-Italic.woff2 create mode 100644 static/katex/fonts/KaTeX_SansSerif-Bold.ttf create mode 100644 static/katex/fonts/KaTeX_SansSerif-Bold.woff create mode 100644 static/katex/fonts/KaTeX_SansSerif-Bold.woff2 create mode 100644 static/katex/fonts/KaTeX_SansSerif-Italic.ttf create mode 100644 static/katex/fonts/KaTeX_SansSerif-Italic.woff create mode 100644 static/katex/fonts/KaTeX_SansSerif-Italic.woff2 create mode 100644 static/katex/fonts/KaTeX_SansSerif-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_SansSerif-Regular.woff create mode 100644 static/katex/fonts/KaTeX_SansSerif-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Script-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Script-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Script-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Size1-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Size1-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Size1-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Size2-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Size2-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Size2-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Size3-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Size3-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Size3-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Size4-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Size4-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Size4-Regular.woff2 create mode 100644 static/katex/fonts/KaTeX_Typewriter-Regular.ttf create mode 100644 static/katex/fonts/KaTeX_Typewriter-Regular.woff create mode 100644 static/katex/fonts/KaTeX_Typewriter-Regular.woff2 create mode 100644 static/katex/katex.css create mode 100644 static/katex/katex.js create mode 100644 static/katex/katex.min.css create mode 100644 static/katex/katex.min.js create mode 100644 static/katex/katex.mjs diff --git a/README.md b/README.md index b9379a1..3a5a6b1 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ theme = "contrast-hugo" [params] minimal = false + excerpts = false description = "my blog" [menu] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b0636f4..31ddab9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -7,16 +7,18 @@ {{- end }} - + {{- if or .Params.math .Site.Params.math }} -{{ partial "math.html" . }} + + + {{- end }}
{{ if not (gt (len .Site.Menus) 1) }} - {{ .Site.Title }} + {{ .Site.Title }} {{ end }} {{ range $menu, $items := .Site.Menus }}