index_helper.tmpl 851 B

123456789101112131415161718192021222324252627
  1. ## -*- coding: utf-8 -*-
  2. <%def name="html_pager()">
  3. %if prevlink or nextlink:
  4. <nav class="postindexpager">
  5. <ul class="pager clearfix">
  6. %if prevlink:
  7. <li class="previous">
  8. <a href="${prevlink}" rel="prev">&larr; ${messages("Newer posts")}</a>
  9. </li>
  10. %endif
  11. %if nextlink:
  12. <li class="next">
  13. <a href="${nextlink}" rel="next">${messages("Older posts")} &rarr;</a>
  14. </li>
  15. %endif
  16. </ul>
  17. </nav>
  18. %endif
  19. </%def>
  20. <%def name="mathjax_script(posts)">
  21. %if any(post.is_mathjax for post in posts):
  22. <script type="text/x-mathjax-config">
  23. MathJax.Hub.Config({tex2jax: {inlineMath: [['$latex ','$'], ['\\(','\\)']]}});</script>
  24. <script src="/assets/js/mathjax.js"></script>
  25. %endif
  26. </%def>