From e33d2ec88aebdb39838fd7b419041ddfb702db1a Mon Sep 17 00:00:00 2001
From: Martin Kiesel <martin.kiesel@gmail.com>
Date: Tue, 20 Nov 2018 11:39:08 +0000
Subject: [PATCH] Accept boolean as well as string (#119)

---
 layouts/partials/posts/math.html |    2 +-
 CONTRIBUTORS.md                  |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index f1b0470..20b8241 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -23,3 +23,4 @@
 - [Vlad Ionescu](https://github.com/Vlaaaaaaad)
 - [Joseph Ting](https://github.com/josephting)
 - [Abner Campanha](https://github.com/abnerpc)
+- [Martin Kiesel](https://github.com/Kyslik)
diff --git a/layouts/partials/posts/math.html b/layouts/partials/posts/math.html
index 3a1969a..d33753a 100644
--- a/layouts/partials/posts/math.html
+++ b/layouts/partials/posts/math.html
@@ -1,4 +1,4 @@
-{{- if eq .Params.math "true" -}}
+{{- if .Params.math -}}
   <script type="text/javascript" async
     src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full">
     MathJax.Hub.Config({

--
Gitblit v1.10.0