From 5c6983ec9e7f8a1aab3fce972f0c437dbaefd40d Mon Sep 17 00:00:00 2001 From: vimux Date: Sun, 27 May 2018 14:59:18 +0300 Subject: [PATCH] Add initial MathJax support --- README.md | 7 +++++-- layouts/partials/footer.html | 1 + layouts/partials/mathjax.html | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/mathjax.html diff --git a/README.md b/README.md index afabc1e..011bf90 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,13 @@ description = "John Doe's Personal blog about everything" # Description of your opengraph = true # Enable OpenGraph if true twitter_cards = true # Enable Twitter Cards if true cardsPerRow = 2 # Possible values: 1, 2, 3 -#toc: true # Enable Table of Contents for all site pages -#comments: true # Enable comments for all site pages #mainSections = ["post"] # Set main page sections #dateFormat = "2006-01-02" # change the format of dates +#toc: true # Enable Table of Contents for all site pages +#comments: true # Enable comments for all site pages +#mathjax: true # Enable MathJax for all site pages +#mathjaxPath: "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js" # Specify path to MathJax lib. Optional +#mathjaxConfig: "TeX-AMS-MML_HTMLorMML" # Specify MathJax config. Optional [Params.Social] #facebook = "username" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 418a654..540ec97 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -4,5 +4,6 @@ +{{- partial "mathjax.html" . -}} \ No newline at end of file diff --git a/layouts/partials/mathjax.html b/layouts/partials/mathjax.html new file mode 100644 index 0000000..19af143 --- /dev/null +++ b/layouts/partials/mathjax.html @@ -0,0 +1,3 @@ +{{ if and .IsPage (eq (.Param "mathjax") true) }} + +{{ end }} \ No newline at end of file