diff --git a/content/posts/hello-world.md b/content/posts/hello-world.md index f859acf..3af908b 100644 --- a/content/posts/hello-world.md +++ b/content/posts/hello-world.md @@ -7,6 +7,7 @@ tags: - test categories: favorite: false +tikz: true --- ## Test post please ignore @@ -30,3 +31,11 @@ fn main() { ```sh echo hello world | cut -d' ' -f 1 ``` + +### TikZJax support + +{{% tikz %}} + \begin{tikzpicture} + \draw (0,0) circle (1in); + \end{tikzpicture} +{{% /tikz %}} diff --git a/layouts/partials/head-extra.html b/layouts/partials/head-extra.html new file mode 100644 index 0000000..2709217 --- /dev/null +++ b/layouts/partials/head-extra.html @@ -0,0 +1,5 @@ + +{{ if (.Params.tikz) }} + + +{{ end }} diff --git a/layouts/shortcodes/tikz.html b/layouts/shortcodes/tikz.html new file mode 100644 index 0000000..a3a78f4 --- /dev/null +++ b/layouts/shortcodes/tikz.html @@ -0,0 +1,3 @@ +