diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d554f8c..16fb678 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -21,6 +21,7 @@ DefaultContentLanguage = "en" # Theme i18n support avatar = "img/avatar.png" subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit." [params.article] + math = false [params.article.license] enabled = true default = "Licenced under CC BY-NC-SA 4.0" diff --git a/layouts/partials/article/article.html b/layouts/partials/article/article.html index 1f453aa..f3f7e90 100644 --- a/layouts/partials/article/article.html +++ b/layouts/partials/article/article.html @@ -4,4 +4,8 @@ {{ partial "article/components/content" . }} {{ partial "article/components/footer" . }} + + {{ if or .Params.math .Site.Params.article.math }} + {{ partialCached "article/components/math.html" . }} + {{ end }} \ No newline at end of file diff --git a/layouts/partials/article/components/math.html b/layouts/partials/article/components/math.html new file mode 100644 index 0000000..6c4d3fd --- /dev/null +++ b/layouts/partials/article/components/math.html @@ -0,0 +1,8 @@ + + + \ No newline at end of file