Skip to content

Instantly share code, notes, and snippets.

@davidtucker
Created July 26, 2013 17:30
Show Gist options
  • Save davidtucker/6090668 to your computer and use it in GitHub Desktop.
Save davidtucker/6090668 to your computer and use it in GitHub Desktop.
{% extends "layout.html" %}
{% block canonical %}{{ url }}{{ page.url }}{% endblock %}
{% block title %}{{ page.title }}{% endblock %}
{% block meta %}
{{ super() }}
{% if page.metadata.keywords %}<meta name="keywords" content="{{ page.metadata.keywords }}">{% endif %}
{% endblock %}
{% block content %}
<div class="row">
<div class="twelve columns">
<ul class="article-list">
{% set articles = env.helpers.getSortedContentFolder("articles",contents) %}
{% for article in articles %}
{% set featureImage = env.helpers.getPathToLocalAssetWithFilename(article, article.metadata.feature_image) %}
<li>
<h3 class="articleTitle"><a href="{{ article.url }}">{{ article.title }}</a></h3>
<p class="dateTime">Posted on <span class="postDate">{{ moment(article.date).format(dateDescriptionFormat) }}</span></p>
{% if article.metadata.short_description %}
<p>{{ article.metadata.short_description }}</p>
{% else %}
<p>{{ article.intro }}</p>
{% endif %}
<div class="readMore">
<a href="{{ article.url }}" class="mono button accent" style="margin-bottom: 25px;">Read More</a>
</div>
</li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment