base.tmpl 1.2 KB

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