initial commit

This commit is contained in:
Daniel Fichtinger 2025-07-02 16:02:49 -04:00
commit ed6c1e9522
58 changed files with 2221 additions and 0 deletions

34
templates/base.html Normal file
View file

@ -0,0 +1,34 @@
<!doctype html>
<html>
<head>
<title>{{ metadata.title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="UTF-8" />
<link
href="{{ metadata.style }}"
rel="stylesheet"
type="text/css"
media="all"
/>
</head>
<body>
<div id="container">
{% if header %}
<header id="header">
<center>
{{ header | safe }}
</center>
<hr>
</header>
{% endif %}
{% block content %}{% endblock %}
{% if footer %}
<footer id="footer">
<hr>
{{ footer | safe }}
</footer>
{% endif %}
</div>
</body>
</html>

6
templates/basic.html Normal file
View file

@ -0,0 +1,6 @@
{% extends "base.html" %}
{% block content %}
{{ content | safe }}
{% endblock %}

5
templates/footer.md Normal file
View file

@ -0,0 +1,5 @@
All posted code written by me is licensed under [MIT](/LICENSE), and all other
original written work is licensed under
[CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0). This
website is [open source](https://git.sr.ht/~ficd/blog), built with
[zona](https://sr.ht/~ficd/zona), and hosted on [sr.ht](https://sr.ht/).

5
templates/header.html Normal file
View file

@ -0,0 +1,5 @@
<ul>
{% for name, url in site_map.items() %}
<li><a href="{{ url }}">{{ name }}</a></li>
{% endfor %}
</ul>

10
templates/page.html Normal file
View file

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block content %}
<center><h1>{{ metadata.title }}</h1></center>
{% if metadata.date %}
<center><small><time datetime="{{ metadata.date | safe }}">{{ metadata.date | safe}}</time></small></center>
{% endif %}
<article>{{ content | safe }}</article>
{% endblock %}

18
templates/post_list.html Normal file
View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block content %}
<center><h1>{{ metadata.title }}</h1></center>
<article>{{ content | safe }}</article>
{% if post_list %}
<ul>
{% for item in post_list %}
<li><small><time datetime="{{ metadata.date | safe }}">{{ metadata.date | safe}}</time></small>: <a href="/{{ item.url }}">{{ item.metadata.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}