zine_library/code-for-pelican-deployment/themes/edtheme/templates/index.html
2026-02-09 19:06:14 -08:00

45 lines
1.6 KiB
HTML
Executable file

{% extends "base.html" %}
{% block content %}
<div class="tiles-container">
{% for article in articles_page.object_list %}
<article class="tile">
<div class="tile-image">
<a href="{{ article.url }}" class="">
{{ article.content }}
</a>
</div>
<a href="{{ SITEURL }}/{{ article.url }}" class="tile-link">
<h2 class="tile-title">{{ article.title }}</h2>
</a>
<div class="tile-meta">
{% if article.category %}
<a href="{{SITEURL }}/category/{{article.category}}" >
<span class="tile-category">{{ article.category }}</span>
</a>
{% endif %}
{% if article.tags %}
{% for tag in article.tags %}
<a href="{{SITEURL }}/tag/{{tag}}" ><span class="tile-tag">{{ tag }}</span></a>
{% endfor %}
{% endif %}
</div>
</article>
{% endfor %}
</div>
{% if articles_page.has_other_pages() %}
<nav class="pagination">
{% if articles_page.has_previous() %}
<a href="{{ SITEURL }}/{{ articles_previous_page.url }}" class="pagination-link pagination-prev">← Back</a>
{% endif %}
<span class="pagination-info">Page {{ articles_page.number }} of {{ articles_paginator.num_pages }}</span>
{% if articles_page.has_next() %}
<a href="{{ SITEURL }}/{{ articles_next_page.url }}" class="pagination-link pagination-next">Forward →</a>
{% endif %}
</nav>
{% endif %}
{% endblock %}