rss and cleanup

This commit is contained in:
Tyrel Souza 2023-07-20 23:34:53 -04:00
parent 525ad0cd65
commit 1acd421e61
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
6 changed files with 26 additions and 5 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -40,7 +40,7 @@
{% for item in AFTER_MENU %}
<li><a href="{{ item.url }}">{{ item.name }}</li>
{% endfor %}
<li><a href="{{ SITEURL }}/{{ FEED_ATOM }}" rel="alternate"><img src="/blog/theme/images/feed-icon-28x28.png" /></li>
</ul>
</div><!-- end #topMenu -->
@ -114,10 +114,8 @@
<div class="archives">
<h2>Archives of {{ SITENAME }}</h2>
{% for article in dates %}
{% if loop.index > 1 %}
<dt>{{ article.locale_date }}</dt>
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
{% endif %}
{% endfor %}
</div>
{% endblock %}

View File

@ -1,2 +1,14 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} - {{ category }}{% endblock %}
{% block content %}
{% if articles %}
{% for article in articles %}
<div class="blogItem">
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
<h3>{{ article.locale_date }}</h3>
{{ article.content }}
<h3 class="blogMeta">{% if not SUPPRESS_ITEM_CATEGORIES %}Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% endif %} | {% if article.tags %} Tags: {% for tag in article.tags %} <span><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% if not loop.last %} / {% endif %} </span> {% endfor %}</h3>{% endif %}</div>
{% endfor %}
{% endif %}
{% endblock content %}
{% block archives %} {% endblock %}

View File

@ -3,7 +3,7 @@
{% block content %}
{% if articles %}
{% for article in articles %}
{% if loop.index <= 1 %}
{% if loop.index <= 3 %}
<div class="blogItem">
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
<h3>{{ article.locale_date }}</h3>

View File

@ -13,3 +13,4 @@
</div>
{% endblock %}
{% block archives %} {% endblock %}

View File

@ -1,4 +1,14 @@
{% extends "index.html" %}
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
{% block archives %}{% endblock %}
{% block content %}
{% if articles %}
{% for article in articles %}
<div class="blogItem">
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
<h3>{{ article.locale_date }}</h3>
{{ article.content }}
<h3 class="blogMeta">{% if not SUPPRESS_ITEM_CATEGORIES %}Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% endif %} | {% if article.tags %} Tags: {% for tag in article.tags %} <span><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% if not loop.last %} / {% endif %} </span> {% endfor %}</h3>{% endif %}</div>
{% endfor %}
{% endif %}
{% endblock content %}