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 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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