miniblog

Miniblog: A command-line static blog system in Common Lisp
Log | Files | Refs | README | LICENSE

page.dtl (1104B)


      1 {% extends "template.dtl" %}
      2 {% block html-head %}
      3   {% super %}
      4   {% if twitter-card %}
      5     <meta name="twitter:card" content="summary">
      6     {% if twitter-card.image %}
      7       <meta name="twitter:image" content="{{ twitter-card.image }}">
      8     {% endif %}
      9     <meta name="twitter:title" content="{{ page.title }}">
     10     <meta name="twitter:description" content="{{ page.rendered-content|strip-html|truncatechars:200 }}">
     11   {% endif %}
     12 {% endblock %}
     13 {% block main %}
     14   {% if page.rendered-content %}
     15     {% block title %}
     16       <h2>{{ page.title }}</h2>
     17     {% endblock %}
     18     {% block article %}
     19     <article>{{ page.rendered-content|safe }}</article>
     20     {% endblock %}
     21     {% block footer %}
     22     <p role="note">
     23       <small>
     24         Posted by {{ page.created-by }} on {{ page.created-at-long }}
     25         {% ifnotequal page.created-at-long page.last-updated-at-long %}
     26           <br>
     27           Last updated by {{ page.last-updated-by }} on {{ page.last-updated-at-long }}
     28         {% endifnotequal %}
     29       </small>
     30     </p>
     31     {% endblock %}
     32   {% else %}
     33     No page found.
     34   {% endif %}
     35 {% endblock %}