page.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. </div>
  36. <section>
  37. <div class="span2" style="float:right;font-size:0.9em;">
  38. {% include 'social_links.html' %}
  39. {% include 'mailchimp.html' %}
  40. </div>
  41. </section>
  42. </div>
  43. </article>
  44. {% endblock content %}
  45. {% block script %}
  46. {{ super() }}
  47. {% endblock script %}