added a shortcode for notes/meta info, and a Reading section

This commit is contained in:
Lewis Wynne 2026-05-02 18:57:48 +01:00
parent 3416521f89
commit 4825a52edd
11 changed files with 86 additions and 19 deletions

View file

@ -11,10 +11,10 @@
</head>
<body>
<nav>
<a href="/">ily [dot] rs</a> |
<a href="/links/">links</a> |
<a href="/">go home</a> |
<a href="/links/">bookmarks</a> |
<a href="/now/">now</a> |
sign the <a href="/guestbook/">guestbook</a>
sign my <a href="/guestbook/">guestbook</a>
</nav>
{% block content %}{% endblock %}
</body>

View file

@ -1,12 +0,0 @@
{% extends "base.html" %}
{% block title %}ily blog{% 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 %}

View file

@ -4,10 +4,18 @@
{% block content %}
<p></p>
<p>This site was once more complicated, but I've stripped it down to bare essentials.</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 %}
<p>Reading</p>
{% set reading = get_section(path="reading/_index.md") %}
{% for post in reading.pages %}
{{ post.date}}&emsp;<a href="{{ post.permalink }}">{{ post.title }}</a><br>
{% endfor %}
{% endblock %}

View file

@ -0,0 +1,2 @@
<div class="meta">{{ at }}</div>
<div>{{ body | markdown | safe }}</div>