base.tmpl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ## -*- coding: utf-8 -*-
  2. <%namespace file="base_helper.tmpl" import="*"/>
  3. ${set_locale(lang)}
  4. <!DOCTYPE html>
  5. <html lang="${lang}">
  6. <head>
  7. <meta name="viewport" content="width=device-width, initial-scale=1">
  8. ${html_head()}
  9. <%block name="extra_head">
  10. </%block>
  11. ${extra_head_data}
  12. </head>
  13. <body>
  14. <header>
  15. ## TODO: fix this shit
  16. <a href="${abs_link('/')}" title="${blog_title}">
  17. <img src="/assets/img/thomas.png" alt="${blog_title}">
  18. <h1 id="blog-title">
  19. ${blog_title}
  20. </h1>
  21. </a>
  22. <ul class="nav">
  23. <li class="twitter"><a href="http://twitter.com/pleasantprog">@pleasantprog</a></li>
  24. ${html_sidebar_links()}
  25. </ul>
  26. <%block name="belowtitle">
  27. %if len(translations) > 1:
  28. <small>
  29. ${(messages("Also available in"))}:&nbsp;
  30. ${html_translations()}
  31. </small>
  32. %endif
  33. </%block>
  34. </header>
  35. <div class="container">
  36. <div class="content">
  37. <%block name="content"></%block>
  38. </div>
  39. </div>
  40. <footer>
  41. <small>${content_footer}</small>
  42. </footer>
  43. %if add_this_buttons:
  44. <script type="text/javascript">var addthis_config={"ui_language":"${lang}"};</script>
  45. % endif
  46. ${analytics}
  47. </body>