diff options
Diffstat (limited to 'themes/erdgeist/templates/index_helper.tmpl')
| -rw-r--r-- | themes/erdgeist/templates/index_helper.tmpl | 27 |
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> | ||
