page.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. {% 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. {% if page.modified %}
  44. <h4>Last Updated</h4>
  45. <div class="last_updated">{{ page.modified }}</div>
  46. {% endif %}
  47. {% if MAILCHIMP_FORM_ACTION %}
  48. {% if not EMAIL_SUBSCRIPTION_LABEL %}
  49. {% set EMAIL_SUBSCRIPTION_LABEL='Email Newsletter' %}
  50. {% endif %}
  51. {% if not SUBSCRIBE_BUTTON_TITLE %}
  52. {% set SUBSCRIBE_BUTTON_TITLE='Subscribe' %}
  53. {% endif %}
  54. {% if not EMAIL_PLACEHOLDER %}
  55. {% set EMAIL_PLACEHOLDER ='email address' %}
  56. {% endif %}
  57. <!-- Begin MailChimp Signup Form -->
  58. <div id="mc_embed_signup">
  59. <form action="{{ MAILCHIMP_FORM_ACTION }}" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
  60. <h4>{{ EMAIL_SUBSCRIPTION_LABEL }}</h4>
  61. <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="{{ EMAIL_FIELD_PLACEHOLDER }}" required>
  62. <div class="clear"><input type="submit" value="{{ SUBSCRIBE_BUTTON_TITLE }}" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
  63. </form>
  64. </div>
  65. <!--End mc_embed_signup-->
  66. {% endif %}
  67. </div>
  68. </section>
  69. </div>
  70. </article>
  71. {% endblock content %}
  72. {% block script %}
  73. {{ super() }}
  74. {% endblock script %}