54 lines
2.3 KiB
Django/Jinja
54 lines
2.3 KiB
Django/Jinja
{% extends "blog/layout.jinja" %}
|
|
|
|
{% block page_title %}
|
|
{{ super() }} | {{ item.title }}
|
|
{% endblock %}
|
|
|
|
{% block submenu %}
|
|
{% if item.status() == 'Published' %}
|
|
{% if page.number > 1 %}
|
|
<a href="{{ url('blog:list', page.number) }}" class="button prev-page pull-left gap">
|
|
{% else %}
|
|
<a href="{{ url('blog:list') }}" class="button prev-page pull-left gap">
|
|
{% endif %}
|
|
<i class="fa fa-angle-double-left"></i> Go back
|
|
</a>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<article class="blog-entry {% if item.draft %}draft{% endif %}">
|
|
<h1 class="entry-title">
|
|
<a class="dark" href="#">{{ item.title }}</a>
|
|
</h1>
|
|
|
|
<div class="info text-left">
|
|
<i class="fa fa-calendar"></i>
|
|
<time datetime="{{ item.date }}"
|
|
pubdate=""
|
|
data-updated="true">{{ item.date|dt('%B %e, %Y') }}</time>
|
|
{% if config.disqus_shortname and config.enable_comments %}
|
|
|
|
<i class="fa fa-comment"></i> <a href="{{ item.get_absolute_url() }}#disqus_thread">0 Comments</a>
|
|
{% endif %}
|
|
{% if item.tags.count() > 0 %}
|
|
|
|
<i class="fa fa-tag"></i> {{ item.tags.all()|join(', ') }}
|
|
{% endif %}
|
|
</div>
|
|
<div class="content">{{ item.content|safe }}</div>
|
|
<div class="clearfix"></div>
|
|
{% if config.show_share_buttons %}
|
|
<div class="share">
|
|
<a href="https://twitter.com/share" class="twitter-share-button" data-text="{{ item.title }} - {{ config.base_url }}{{ item.get_absolute_url() }}" data-via="{{ config.twitter_username }}" data-size="large">Tweet</a>
|
|
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
{% endif %}
|
|
{% if config.disqus_shortname and config.enable_comments %}
|
|
<hr class="big" />
|
|
<div class="comments" id="disqus_thread"></div>
|
|
{% endif %}
|
|
</article>
|
|
{% endblock %}
|