page.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 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. {% include 'comments.html' %}
  36. </div>
  37. <section>
  38. <div class="span2" style="float:right;font-size:0.9em;">
  39. {% if page.date %}
  40. <h4>Published</h4>
  41. {% set day = page.date.strftime('%d')|int %}
  42. <time pubdate="pubdate" datetime="{{ page.date.isoformat() }}">{{ page.date.strftime('%b') }} {{ day }} {{- page.date.strftime(', %Y') }}</time>
  43. {% endif %}
  44. {% if page.modified %}
  45. <h4>Last Updated</h4>
  46. <div class="last_updated">{{ page.modified }}</div>
  47. {% endif %}
  48. {% if MAILCHIMP_FORM_ACTION %}
  49. {% if not EMAIL_SUBSCRIPTION_LABEL %}
  50. {% set EMAIL_SUBSCRIPTION_LABEL='Email Newsletter' %}
  51. {% endif %}
  52. {% if not SUBSCRIBE_BUTTON_TITLE %}
  53. {% set SUBSCRIBE_BUTTON_TITLE='Subscribe' %}
  54. {% endif %}
  55. {% if not EMAIL_PLACEHOLDER %}
  56. {% set EMAIL_PLACEHOLDER ='email address' %}
  57. {% endif %}
  58. <!-- Begin MailChimp Signup Form -->
  59. <div id="mc_embed_signup">
  60. <form action="{{ MAILCHIMP_FORM_ACTION }}" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
  61. <h4>{{ EMAIL_SUBSCRIPTION_LABEL }}</h4>
  62. <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="{{ EMAIL_FIELD_PLACEHOLDER }}" required>
  63. <div class="clear"><input type="submit" value="{{ SUBSCRIBE_BUTTON_TITLE }}" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
  64. </form>
  65. </div>
  66. <!--End mc_embed_signup-->
  67. {% endif %}
  68. </div>
  69. </section>
  70. </div>
  71. </article>
  72. {% endblock content %}
  73. {% block script %}
  74. {{ super() }}
  75. {% include 'disqus_script_count.html' %}
  76. {% endblock script %}