site/_zola/templates/page.html
wl 56bf70aead
new post on XHTML, change file extensions to .xhtml
Signed-off-by: wl <zayd@disroot.org>
2025-04-13 03:05:18 -04:00

15 lines
555 B
HTML

{% extends "index.html" %}
{% block title %}
<title>{{ config.title }} - {{ page.title }}</title>
{% endblock title %}
{% block content %}
<div class="post">
<h1 class="post-title">{{ page.title }}</h1>
<h2 class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</h2>
<!-- if Zola just generated compliant XHTML on its own that would be great, but looks like this will have to do -->
{{ page.content | replace(from="%5B", to="[") | replace(from="%5D", to="]") | replace(from=' data-lang="xhtml"', to="") | safe }}
</div>
{% endblock content %}