aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-07-04 11:36:33 -0700
committerFranck Cuny <franck@fcuny.net>2024-07-04 11:36:33 -0700
commitfccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f (patch)
treef506115024e7e6247279409fa053e59927ec398c /templates/page.html
parentdont format html files with prettier (diff)
downloadfcuny.net-fccd15aec3507fd3f0cb4a2c18a0ec1af1d69c1f.tar.gz
migrate to zola
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..1026cd0
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,28 @@
+{% extends "base.html" %}
+
+{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %}
+
+{% block content -%}
+<main>
+<h1>{{ page.title }}</h1>
+<p class="date">
+ <time datetime="{{ page.date | date(format="%+") }}">
+ {{- page.date | date(format="%B %m, %Y") -}}
+ </time>
+ {%- if page.updated %}
+ •
+ updated <time datetime="{{ page.updated | date(format="%+") }}">
+ {{- page.updated | date(format="%B %m, %Y") -}}
+ </time>
+ {%- endif %}
+</p>
+
+{{ page.content | safe -}}
+</main>
+
+<hr>
+<p>
+<b><a href="/">↑ back home</a></b>
+</p>
+
+{%- endblock content %}