page.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {% extends 'base.html' %}
  2. {% block title %}
  3. {{ page.title }} {%if page.subtitle %} - {{ page.subtitle }} {% endif %} · {{ super() }}
  4. {% endblock title %}
  5. {% block head_description %}
  6. {% if page.summary %}
  7. {{ page.summary|striptags }}
  8. {% endif %}
  9. {% endblock head_description %}
  10. {% block meta_tags_in_head %}
  11. {{ super() }}
  12. {% if page.keywords %}
  13. <meta name="keywords" content="{{ page.keywords }}" />
  14. {% endif %}
  15. {% endblock meta_tags_in_head %}
  16. {% block content %}
  17. <article>
  18. <div class="row-fluid">
  19. <header class="page-header span10 offset2">
  20. <h1><a href="{{ SITEURL }}/{{ page.url }}"> {{ page.title }} {%if page.subtitle %} <small> {{ page.subtitle }} </small> {% endif %} </a></h1>
  21. </header>
  22. </div>
  23. <div class="row-fluid">
  24. {% if page.toc %}
  25. <div class="span2 table-of-content">
  26. <nav>
  27. <h4>Contents</h4>
  28. {{ page.toc }}
  29. </nav>
  30. </div>
  31. <div class="span8 article-content">
  32. {% else %}
  33. <div class="span8 offset2 article-content">
  34. {% endif %}
  35. {{ page.content }}
  36. {% from '_includes/comments.html' import comments with context %}
  37. {{ comments(page) }}
  38. </div>
  39. <section>
  40. <div class="span2" style="float:right;font-size:0.9em;">
  41. {% include '_includes/social_links.html' %}
  42. {% include '_includes/mailchimp.html' %}
  43. </div>
  44. </section>
  45. </div>
  46. </article>
  47. {% endblock content %}
  48. {% block script %}
  49. {{ super() }}
  50. {% from '_includes/comments.html' import comments_script with context %}
  51. {{ comments_script(page) }}
  52. {% endblock script %}