feat:adding in a lot of formatting fixes, 404 page and a 500 page

This commit is contained in:
Lucas Oskorep
2024-03-12 03:21:52 -04:00
parent 87a359fdb4
commit 89b4d691eb
7 changed files with 74 additions and 80 deletions
+5 -43
View File
@@ -1,45 +1,7 @@
{% extends "base.html" %}
{% block content %}
<div class="posts">
{% for article in articles_page.object_list %}
<div class="post">
<h1 class="post-title" href="{{ SITEURL }}/{{ article.url }}">
<a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
</h1>
<span class="post-date">{{ article.locale_date }}</span>
{% if article.tags %}
<span class="post-tags">
Tags:
<ul>
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
</ul>
</span>
{% endif %}
<p>
{{ article.summary }}
</p>
<a class="read-more" href="{{ article.url }}">Continue reading »</a>
</div>
{% endfor %}
</div>
{% if DEFAULT_PAGINATION %}
<div class="pagination">
{% if articles_page.has_previous() %}
{% set num = articles_page.previous_page_number() %}
<span class="pagination-item older"><a href="{{ SITEURL }}/{{ page_name }}{{ num if num > 1 else '' }}.html">Newer</a></span>
{% else %}
<span class="pagination-item older">Newer</span>
{% endif %}
{% if articles_page.has_next() %}
<span class="pagination-item newer"><a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">Older</a></span>
{% else %}
<span class="pagination-item newer">Older</span>
{% endif %}
</div>
{% endif %}
{% endblock %}
<div class="post">
<h1 class="post-title">Hi! </h1>
<p>Thanks for visiting my website! I hope you find something interesting or useful here</p>
</div>
{% endblock %}