瀏覽代碼

footer.html: Shorten if condition for MathJAX (#40)

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
Stephan Kulla 8 年之前
父節點
當前提交
a4eb23b3dc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      layouts/partials/footer.html

+ 1 - 1
layouts/partials/footer.html

@@ -34,7 +34,7 @@
     <script>hljs.initHighlightingOnLoad();</script>
 
     <!-- LaTeX math rendering -->
-    {{ if or (and (isset .Site.Params "math") (eq .Site.Params.math true)) (and (isset .Params "math") (eq .Params.math true)) }}
+    {{ if or .Params.math .Site.Params.math }}
     <script type="text/x-mathjax-config">
         MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
     </script>