summaryrefslogtreecommitdiff
path: root/themes/erdgeist/templates/index_helper.tmpl
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.local>2015-08-16 16:38:25 +0200
committererdgeist <erdgeist@bauklotz.local>2015-08-16 16:38:25 +0200
commit23f0e1561767dd8a396188e317bae5920d171ea8 (patch)
treea67f44e39ad8a45e42d60634488a65c37f3ad432 /themes/erdgeist/templates/index_helper.tmpl
Initial import of my nikola website
Diffstat (limited to 'themes/erdgeist/templates/index_helper.tmpl')
-rw-r--r--themes/erdgeist/templates/index_helper.tmpl27
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/erdgeist/templates/index_helper.tmpl b/themes/erdgeist/templates/index_helper.tmpl
new file mode 100644
index 0000000..9331b93
--- /dev/null
+++ b/themes/erdgeist/templates/index_helper.tmpl
@@ -0,0 +1,27 @@
1## -*- coding: utf-8 -*-
2<%def name="html_pager()">
3 %if prevlink or nextlink:
4 <nav class="postindexpager">
5 <ul class="pager">
6 %if prevlink:
7 <li class="previous">
8 <a href="${prevlink}" rel="prev">${messages("Newer posts")}</a>
9 </li>
10 %endif
11 %if nextlink:
12 <li class="next">
13 <a href="${nextlink}" rel="next">${messages("Older posts")}</a>
14 </li>
15 %endif
16 </ul>
17 </nav>
18 %endif
19</%def>
20
21<%def name="mathjax_script(posts)">
22 %if any(post.is_mathjax for post in posts):
23 <script type="text/x-mathjax-config">
24 MathJax.Hub.Config({tex2jax: {inlineMath: [['$latex ','$'], ['\\(','\\)']]}});</script>
25 <script src="/assets/js/mathjax.js"></script>
26 %endif
27</%def>