summaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/index_helper.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'nikola/data/themes/base/templates/index_helper.tmpl')
-rw-r--r--nikola/data/themes/base/templates/index_helper.tmpl23
1 files changed, 23 insertions, 0 deletions
diff --git a/nikola/data/themes/base/templates/index_helper.tmpl b/nikola/data/themes/base/templates/index_helper.tmpl
new file mode 100644
index 0000000..a914846
--- /dev/null
+++ b/nikola/data/themes/base/templates/index_helper.tmpl
@@ -0,0 +1,23 @@
+## -*- coding: utf-8 -*-
+<%def name="html_pager()">
+<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>
+</%def>
+
+<%def name="mathjax_script(posts)">
+ %if any(post.is_mathjax for post in posts):
+ <script src="/assets/js/mathjax.js" type="text/javascript"></script>
+ %endif
+</%def>