feat: complete swap over to a far simpler static, zola site

This commit is contained in:
Lewis Wynne 2026-04-29 01:22:21 +01:00
parent 227f560c0d
commit d76cb9cf77
62 changed files with 717 additions and 5028 deletions

21
templates/base.html Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{{ config.title }}{% endblock %}</title>
<link rel="stylesheet" href="/style.css">
{% if config.generate_feeds %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml">
{% endif %}
</head>
<body>
<nav>
<a href="/">ily [dot] rs</a> |
<a href="/links/">links</a> |
<a href="/now/">now</a> |
sign the <a href="/guestbook/">guestbook</a>
</nav>
{% block content %}{% endblock %}
</body>
</html>

9
templates/blog-page.html Normal file
View file

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block title %}{{ page.title }} — {{ config.title }}{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>
<p><em>{{ page.date }}</em></p>
{{ page.content | safe }}
{% endblock %}

12
templates/blog.html Normal file
View file

@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block title %}{{ section.title }} — {{ config.title }}{% endblock %}
{% block content %}
<h1>{{ section.title }}</h1>
<ul>
{% for post in section.pages %}
<li>{{ post.date }} — <a href="{{ post.permalink }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
{% endblock %}

15
templates/index.html Normal file
View file

@ -0,0 +1,15 @@
{% extends "base.html" %}
{% block title %}{{ config.title }}{% endblock %}
{% block content %}
<p>
She looked herself in the mirror and plunged the pen drive into her neck and felt the weight of sapience lift from her shoulders, and then the high wore off.
</p>
{% set blog = get_section(path="blog/_index.md") %}
{% for post in blog.pages %}
{{ post.date }}&emsp;<a href="{{ post.permalink }}">{{ post.title }}</a><br>
{% endfor %}
{% endblock %}

8
templates/page.html Normal file
View file

@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}{{ page.title }} — {{ config.title }}{% endblock %}
{% block content %}
<h1>{{ page.title }}</h1>
{{ page.content | safe }}
{% endblock %}

View file

@ -0,0 +1,18 @@
{% set alt = alt | default(value="") -%}
{% set caption = caption | default(value="") -%}
{% set is_gif = src is ending_with(".gif") -%}
{% set dir = page.relative_path | replace(from="index.md", to="") -%}
{% set orig = page.permalink ~ src -%}
<figure>
<a href="{{ orig }}">
{%- if is_gif %}
<img src="{{ orig }}" alt="{{ alt }}" loading="lazy">
{%- else %}
{%- set img = resize_image(path=dir ~ src, width=1120, op="fit_width", format="webp") %}
<img src="{{ img.url }}" alt="{{ alt }}" loading="lazy" width="{{ img.width }}" height="{{ img.height }}">
{%- endif %}
</a>
{%- if caption %}
<figcaption>{{ caption }}</figcaption>
{%- endif %}
</figure>