page.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {% extends "base.html" %}
  2. {% block title %}
  3. {{ page.title }} - {{ super() }}
  4. {% endblock title %}
  5. {% block head_description %}
  6. {% if page.summary %}
  7. {{ page.summary|striptags }}
  8. {% endif %}
  9. {% endblock head_description %}
  10. {% block content %}
  11. <article>
  12. <div class="row-fluid">
  13. <header class="page_header span10 offset2">
  14. <h1><a href="{{ SITEURL }}/{{ page.url }}"> {{ page.title }} {%if page.subtitle %} <small> {{ page.subtitle }} </small> {% endif %} </a></h1>
  15. </header>
  16. </div>
  17. <div class="row-fluid">
  18. {% if page.toc %}
  19. <div class="span2 table-of-content">
  20. <nav>
  21. <h4>Contents</h4>
  22. {{ page.toc }}
  23. </nav>
  24. </div>
  25. <div class="span8 article-content">
  26. {% else %}
  27. <div class="span8 offset2 article-content">
  28. {% endif %}
  29. {{ page.content }}
  30. {% include 'comments.html' %}
  31. </div>
  32. <section>
  33. <div class="span2" style="float:right;font-size:0.9em;">
  34. {% if page.date %}
  35. <h4>Published</h4>
  36. {% set day = page.date.strftime('%d')|int %}
  37. <time pubdate="pubdate" datetime="{{ page.date.isoformat() }}">{{ page.date.strftime('%b') }} {{ day }} {{- page.date.strftime(', %Y') }}</time>
  38. {% endif %}
  39. {% if page.modified %}
  40. <h4>Last Updated</h4>
  41. <div class="last_updated">{{ page.modified }}</div>
  42. {% endif %}
  43. {% if MAILCHIMP_FORM_ACTION %}
  44. {% if not EMAIL_SUBSCRIPTION_LABEL %}
  45. {% set EMAIL_SUBSCRIPTION_LABEL='Email Newsletter' %}
  46. {% endif %}
  47. {% if not SUBSCRIBE_BUTTON_TITLE %}
  48. {% set SUBSCRIBE_BUTTON_TITLE='Subscribe' %}
  49. {% endif %}
  50. {% if not EMAIL_PLACEHOLDER %}
  51. {% set EMAIL_PLACEHOLDER ='email address' %}
  52. {% endif %}
  53. <!-- Begin MailChimp Signup Form -->
  54. <div id="mc_embed_signup">
  55. <form action="{{ MAILCHIMP_FORM_ACTION }}" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
  56. <h4>{{ EMAIL_SUBSCRIPTION_LABEL }}</h4>
  57. <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="{{ EMAIL_FIELD_PLACEHOLDER }}" required>
  58. <div class="clear"><input type="submit" value="{{ SUBSCRIBE_BUTTON_TITLE }}" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
  59. </form>
  60. </div>
  61. <!--End mc_embed_signup-->
  62. {% endif %}
  63. </div>
  64. </section>
  65. </div>
  66. </article>
  67. {% endblock content %}
  68. {% block script %}
  69. {{ super() }}
  70. {% include 'disqus_script_count.html' %}
  71. {% endblock script %}