Skip to content
Permalink
Browse files
Fix function references
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 12, 2017
1 parent a111ce9 commit 5d129e1efba6a05ae597822b9e312beb7c55895e
Showing 1 changed file with 7 additions and 5 deletions.
@@ -28,29 +28,31 @@
</%def>

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

<%def name="math_scripts_ifpost(post)">
%if post.is_mathjax:
${math.math_scripts()}
${math_scripts()}
%endif
</%def>

<%def name="math_scripts_ifposts(posts)">
%if any(post.is_mathjax for post in posts):
${math.math_scripts()}
${math_scripts()}
%endif
</%def>

<%def name="math_styles_ifpost(post)">
%if post.is_mathjax:
${math.math_styles()}
${math_styles()}
%endif
</%def>

<%def name="math_styles_ifposts(posts)">
%if any(post.is_mathjax for post in posts):
${math.math_styles()}
${math_styles()}
%endif
</%def>

0 comments on commit 5d129e1

Please sign in to comment.