Watch
1
0
Fork
You've already forked rgebee-info
0
rgebee-info/templates/blog-page.html
Chris Dill ab79feb4ab
All checks were successful
Build / build (push) Successful in 18s
feat: Update templates and styling
2026-10-29 21:20:26 +00:00

36 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}{{ page.title }}{% endblock title %}
{% block content %}
<div class="blog-page-content">
<div class="title">
<h1>{{ page.title }}</h1>
<span>{{ page.date | date(format="%Y-%m-%d") }}</span>
{% if page.taxonomies.tags %}
<span class="tags">
{% for tag in page.taxonomies.tags %}
{% set t = get_taxonomy_term(kind="tags", term=tag) %}
<a href="{{ t.permalink | safe }}">{{ tag }}</a>{% if not loop.last %} · {% endif %}
{% endfor %}
</span>
{% endif %}
</div>
{{ page.content | safe }}
{# adjacent posts: higher = older (below in the list), lower = newer (above) #}
{% if page.higher or page.lower %}
<nav class="post-nav" aria-label="Other posts">
{% if page.higher %}
<a href="{{ page.higher.permalink | safe }}">&lt;&lt; Previous</a>
{% else %}
<span></span>
{% endif %}
{% if page.lower %}
<a href="{{ page.lower.permalink | safe }}">Next &gt;&gt;</a>
{% else %}
<span></span>
{% endif %}
</nav>
{% endif %}
</div>
{% endblock content %}