Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stub out metadata and markup for articles

  • Loading branch information...
commit 7a19bc6420d20931efabd6c271afd08f8cf74295 1 parent fd9a1dc
@gordonbrander authored
Showing with 14 additions and 1 deletion.
  1. +14 −1 templates/article.html
View
15 templates/article.html
@@ -12,7 +12,20 @@
{% block main %}
<div class="in">
<article class="article pre-01 col-06">
- {{ page.html | safe }}
+ <header class="page-header">
+ <h1 class="article-title">{{ page.title }}</h1>
+ {% if page.metadata.synopsis %}
+ <div class="article-synopsis">{{ page.metadata.synopsis }}</div>
+ {% endif %}
+ {% if page.metadata.author %}
+ <div class="article-byline">
+ {{ page.metadata.author }}, {{ moment(page.date).format('MMMM D') }}
+ </div>
+ {% endif %}
+ </header>
+ <div class="article-main">
+ {{ page.html | safe }}
+ </div>
</article>
</div>
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.