page.html 1.6 KB

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