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 %}
|
|
|
|
{% if detail %}
|
2012-08-27 20:57:40 -07:00
|
|
|
<div id="disqus_thread"></div>
|
|
|
|
<script type="text/javascript">
|
2013-02-02 20:01:34 -08:00
|
|
|
var disqus_shortname = '{% firstof blog_user.profile.disqus_shortname "snipt-net" %}';
|
2012-08-27 20:57:40 -07:00
|
|
|
{% if debug %}
|
|
|
|
var disqus_developer = 1;
|
|
|
|
{% endif %}
|
|
|
|
var disqus_url = '{{ snipt.get_full_absolute_url }}{% if not snipt.public %}?key={{ snipt.key }}{% endif %}';
|
|
|
|
var disqus_title = '{{ snipt.title }}';
|
|
|
|
var disqus_identifier = {{ snipt.id }};
|
|
|
|
(function() {
|
|
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
|
|
dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js';
|
|
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2012-08-22 09:40:16 -07:00
|
|
|
</div>
|
|
|
|
</article>
|