zonetoast/blue-penguin-dark/templates/article_stub.html

47 lines
2.1 KiB
HTML
Raw Normal View History

2026-05-17 12:13:27 +03:00
{% if not articles_page or first_article_of_day %}
<h4 class="date">{{ article.era }}</h4>
{% endif %}
<article class="post">
{% if article.title %}
<h2 class="title">
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permanent Link to &quot;{{ article.title|striptags }}&quot;">{{ article.title }}</a>
</h2>
{% endif %}
{% if not articles_page %}
{% include "translations.html" %}
{% endif %}
{% if articles_page %}
{% if '<!-- more -->' in article.content %}
{{ article.content.split('<!-- more -->')[0] }}
<p><a href="{{ SITEURL }}/{{ article.url }}">{{ article.read_more if article.read_more is defined else 'Read more &rarr;' }}</a></p>
{% else %}
{{ article.summary }}
{% endif %}
{% else %}
{{ article.content }}
{% endif %}
<div class="clear"></div>
<div class="info">
<a href="{{ SITEURL }}/{{ article.url }}">posted on {{ article.date.strftime("%b %d, %Y") }}</a>
{% if article.category.name != "misc" %}
&nbsp;&middot;&nbsp;<a href="{{ SITEURL }}/{{ article.category.url }}" rel="tag">{{ article.category }}</a>
{% endif %}
{% if article.tags %}
&nbsp;&middot;
{% for t in article.tags %}
&nbsp;<a href="{{ SITEURL }}/{{ t.url }}" class="tags{% if tag and tag.name == t.name %} selected{% endif %}">{{ t }}</a>
{% endfor %}
{% endif %}
</div>
{% if articles_page and DISQUS_SITENAME %}
<a href="{{ SITEURL }}/{{ article.url }}#disqus_thread">Click to read and post comments</a>
{% else %}
{% include "disqus.html" %}
{% endif %}
</article>