rsspls.7bit.org/templates/section.html

53 lines
1.6 KiB
HTML
Raw Normal View History

{% import "_macros.html" as macros %}
{% extends "index.html" %}
2024-03-10 04:31:33 +00:00
{% block title %}{{ section.title }} - {{ config.title }} {% endblock title %}
{% block header %}
<header class="box-shadow">
{{ macros::render_header() }}
</header>
{% endblock header %}
2024-03-10 05:30:18 +00:00
{% block metadata %}
<meta property="og:url" content="{{ section.permalink }}" />
<meta property="og:title" content="{{ config.title }} - {{ section.title }}" />
<meta property="og:description" content="{{ section.description | default(value="") | striptags }}" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_AU" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="{{ config.extra.twitter_name }}" />
{% endblock %}
{% block content %}
2024-03-10 04:31:33 +00:00
<h1 class="heading-text">{{ section.description }}</h1>
{{ section.content | safe }}
2024-03-10 04:31:33 +00:00
{% for page in paginator.pages %}
<article>
<h2><a href="{{ page.permalink }}">{{ page.title }}</a></h2>
<time datetime="{{ page.date }}">{{ page.date | date(format="%d %B %Y") }}</time>
<div>
2024-08-31 01:18:50 +00:00
{% if page.description %}
<p>{{ page.description }}</p>
{% else %}
{{ page.summary | safe }}
{% endif %}
2024-03-10 04:31:33 +00:00
</div>
<a href="{{ page.permalink }}">Read more →</a>
2024-03-10 04:31:33 +00:00
</article>
{% endfor %}
<nav class="pagination">
{% if paginator.previous %}
<a class="previous" href="{{ paginator.previous }}"> Previous</a>
{% endif %}
{% if paginator.next %}
<a class="next" href="{{ paginator.next }}">Next </a>
{% endif %}
</nav>
{% endblock content %}