Skip to content

Commit 5d129e1

Browse files
committedApr 12, 2017
Fix function references
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent a111ce9 commit 5d129e1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎nikola/data/themes/base/templates/math_helper.tmpl

+7-5
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,31 @@
2828
</%def>
2929

3030
<%def name="math_styles()">
31-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css" integrity="sha384-wITovz90syo1dJWVh32uuETPVEtGigN07tkttEqPv+uR2SE/mbQcG7ATL28aI9H0" crossorigin="anonymous">
31+
% if use_katex:
32+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css" integrity="sha384-wITovz90syo1dJWVh32uuETPVEtGigN07tkttEqPv+uR2SE/mbQcG7ATL28aI9H0" crossorigin="anonymous">
33+
% endif
3234
</%def>
3335

3436
<%def name="math_scripts_ifpost(post)">
3537
%if post.is_mathjax:
36-
${math.math_scripts()}
38+
${math_scripts()}
3739
%endif
3840
</%def>
3941

4042
<%def name="math_scripts_ifposts(posts)">
4143
%if any(post.is_mathjax for post in posts):
42-
${math.math_scripts()}
44+
${math_scripts()}
4345
%endif
4446
</%def>
4547

4648
<%def name="math_styles_ifpost(post)">
4749
%if post.is_mathjax:
48-
${math.math_styles()}
50+
${math_styles()}
4951
%endif
5052
</%def>
5153

5254
<%def name="math_styles_ifposts(posts)">
5355
%if any(post.is_mathjax for post in posts):
54-
${math.math_styles()}
56+
${math_styles()}
5557
%endif
5658
</%def>

0 commit comments

Comments
 (0)
Please sign in to comment.