page.html 1.7 KB

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