base.tmpl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. <div class="header">
  15. ## TODO: fix this shit
  16. <a href="${abs_link('/')}" title="${blog_title}">
  17. <img src="/assets/img/thomas.png" alt="pleasant thomas">
  18. <h1 id="blog-title">
  19. ${blog_title}
  20. </h1>
  21. </a>
  22. <br />
  23. ## ${html_sidebar_links()}
  24. <a class="twitter" href="http://twitter.com/pleasantprog">@pleasantprog</a>
  25. <%block name="belowtitle">
  26. %if len(translations) > 1:
  27. <small>
  28. ${(messages("Also available in"))}:&nbsp;
  29. ${html_translations()}
  30. </small>
  31. %endif
  32. </%block>
  33. </div>
  34. <div class="container">
  35. <div class="content">
  36. <%block name="content"></%block>
  37. </div>
  38. <div class="footer"><small>${content_footer}</small></div>
  39. </div>
  40. %if add_this_buttons:
  41. <script type="text/javascript">var addthis_config={"ui_language":"${lang}"};</script>
  42. % endif
  43. ${analytics}
  44. </body>