miniblog

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

page.dtl (967B)


      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.content|markdown|strip-html|truncatechars:200 }}">
     11   {% endif %}
     12 {% endblock %}
     13 {% block main %}
     14   {% if page.content %}
     15     <h2>{{ page.title }}</h2>
     16     <article>{{ page.content|safe|markdown }}</article>
     17     <p role="note">
     18       <small>
     19         Posted by {{ page.created-by }} on {{ page.created-at-long }}
     20         {% ifnotequal page.created-at-long page.last-updated-at-long %}
     21           <br>
     22           Last updated by {{ page.last-updated-by }} on {{ page.last-updated-at-long }}
     23         {% endifnotequal %}
     24       </small>
     25     </p>
     26   {% else %}
     27     No page found.
     28   {% endif %}
     29 {% endblock %}