2016-11-01 09:59:35 -07:00
|
|
|
{% load snipt_tags %}
|
2012-08-28 08:35:04 -07:00
|
|
|
|
2012-08-27 20:57:40 -07:00
|
|
|
<article class="group {% if detail %}detail{% endif %}">
|
2013-01-09 19:39:27 -08:00
|
|
|
{% if snipt.title != 'Work' %}
|
2013-01-09 08:23:57 -08:00
|
|
|
<div class="gutter">
|
|
|
|
<a href="{{ snipt.get_full_absolute_url }}" {% if detail %}class="detail"{% endif %}>
|
|
|
|
<time pubdate datetime="{{ snipt.publish_date|date:'c' }}">
|
|
|
|
<span class="id">
|
|
|
|
#{{ snipt.id }}
|
|
|
|
</span>
|
|
|
|
<span class="mon-day">
|
|
|
|
{{ snipt.publish_date|date:'M' }} {{ snipt.publish_date|date:'j' }}
|
|
|
|
</span>
|
|
|
|
<span class="year">{{ snipt.publish_date|date:'Y' }}</span>
|
|
|
|
</time>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2012-08-22 09:40:16 -07:00
|
|
|
<div class="content-inner">
|
2016-11-01 09:59:35 -07:00
|
|
|
<h1><a href="{{ snipt.get_full_absolute_url }}">{% firstof snipt.title 'Untitled' %}</a></h1>
|
2012-08-28 08:35:04 -07:00
|
|
|
<div class="post-content autumn">
|
|
|
|
{% if snipt.lexer == 'markdown' %}
|
|
|
|
<div class="markdown">
|
2012-09-02 16:47:02 -07:00
|
|
|
{% if detail %}
|
|
|
|
{{ snipt.stylized|safe }}
|
|
|
|
{% else %}
|
|
|
|
{{ snipt.stylized|truncatewords_html:70|safe }}
|
|
|
|
{% endif %}
|
2012-08-28 08:35:04 -07:00
|
|
|
</div>
|
2012-08-27 20:57:40 -07:00
|
|
|
{% else %}
|
2012-09-02 16:47:02 -07:00
|
|
|
{% if detail %}
|
2012-08-28 08:35:04 -07:00
|
|
|
{{ snipt.stylized|safe }}
|
2012-09-02 16:47:02 -07:00
|
|
|
{% else %}
|
|
|
|
{{ snipt.stylized|truncatewords_html:100|safe }}
|
2012-08-28 08:35:04 -07:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2012-08-27 20:57:40 -07:00
|
|
|
</div>
|
2012-08-22 09:40:16 -07:00
|
|
|
</div>
|
|
|
|
</article>
|