فهرست منبع

Accept boolean as well as string (#119)

* Accept boolean as well as string

* Update math.html

Tidy it up

* Update CONTRIBUTORS.md

Add myself to contributors
Martin Kiesel 7 سال پیش
والد
کامیت
e33d2ec88a
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      CONTRIBUTORS.md
  2. 1 1
      layouts/partials/posts/math.html

+ 1 - 0
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)

+ 1 - 1
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({