aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/index_helper.tmpl
blob: c9255599527a3e61ed1ce83094010f30a99be4ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## -*- coding: utf-8 -*-
<%def name="html_pager()">
    %if prevlink or nextlink:
        <div>
        <ul class="pager">
        %if prevlink:
            <li class="previous">
                <a href="${prevlink}" rel="prev">&larr; ${messages("Newer posts")}</a>
            </li>
        %endif
        %if nextlink:
            <li class="next">
                <a href="${nextlink}" rel="next">${messages("Older posts")} &rarr;</a>
            </li>
        %endif
        </ul>
        </div>
    %endif
</%def>

<%def name="mathjax_script(posts)">
    %if any(post.is_mathjax for post in posts):
        <script type="text/x-mathjax-config">
        MathJax.Hub.Config({
          tex2jax: {inlineMath: [['$latex ','$'], ['\\(','\\)']]}
        });
        </script>
        <script src="/assets/js/mathjax.js"></script>
    %endif
</%def>