Skip to content

Commit

Permalink
Fix function references
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Apr 12, 2017
1 parent a111ce9 commit 5d129e1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions nikola/data/themes/base/templates/math_helper.tmpl
Expand Up @@ -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.