monospace/templates/index.html

47 lines
1.7 KiB
HTML
Raw Normal View History

2019-03-06 17:01:54 -05:00
{% extends "base.html" %}
{% block content_title %}{% endblock %}
{% block content %}
2021-07-27 20:49:53 -04:00
<div id="wrap" style="width:100%">
<div id="container" style="width:70%">
<div class="entry">
2019-03-06 17:01:54 -05:00
{% if articles %}
<header>
<h1><a href="{{ SITEURL }}" id="site-title"> {# {{ SITENAME }} #} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a> {#:#}</h1>
{% for article in articles_page.object_list %}
<h1><a href="{{ SITEURL }}/{{ article.url }}" id="page-title">{{ article.title }}</a></h1>
{% if not HIDE_DATE %}<b><time datetime="{{ article.date.isoformat() }}">{{ article.locale_date }}</time></b>{% endif %}
</header>
<article>
{{ article.content }}
</article>
{% endfor %}
{% else %}
No posts found.
{% endif %}
{% if DEFAULT_PAGINATION %}
<div class="paginator">
{% if articles_page.has_previous() %}
{% if articles_page.previous_page_number() == 1 %}
<a href="{{ SITEURL }}/{{ page_name }}.html">&lt;&lt;&lt;</a>
{% else %}
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.previous_page_number() }}.html">
&lt;&lt;&lt;
</a>
{% endif %}
{% endif %}
Page {{ articles_page.number }} / {{ articles_paginator.num_pages }}
{% if articles_page.has_next() %}
<a href="{{ SITEURL }}/{{ page_name }}{{ articles_page.next_page_number() }}.html">
&gt;&gt;&gt;
</a>
{% endif %}
</div>
{% endif %}
2021-07-27 20:49:53 -04:00
</div>
</div>
2019-03-06 17:01:54 -05:00
{% endblock content %}