page.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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="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. {% if page.date %}
  39. <h4>Published</h4>
  40. {% set day = page.date.strftime('%d')|int %}
  41. <time pubdate="pubdate" datetime="{{ page.date.isoformat() }}">{{ page.date.strftime('%b') }} {{ day }} {{- page.date.strftime(', %Y') }}</time>
  42. {% endif %}
  43. {% include 'last_updated.html' %}
  44. {% include 'social_links.html' %}
  45. {% include 'mailchimp.html' %}
  46. </div>
  47. </section>
  48. </div>
  49. </article>
  50. {% endblock content %}
  51. {% block script %}
  52. {{ super() }}
  53. {% endblock script %}