slow structuring

This commit is contained in:
2026-02-17 21:11:03 -08:00
parent e230ebbc33
commit e4342e764f
14 changed files with 866 additions and 17 deletions

View File

@ -1,10 +0,0 @@
<!doctype html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/main.css">
</head>
<body>
<body>

26
src/feed.xml Normal file
View File

@ -0,0 +1,26 @@
---
permalink: feed.xml
eleventyExcludeFromCollections: true
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{{ metadata.language or page.lang }}">
<title>{{ metadata.title }}</title>
<subtitle>{{ metadata.description }}</subtitle>
<link href="{{ permalink | htmlBaseUrl(metadata.base) }}" rel="self" />
<link href="{{ metadata.base | addPathPrefixToFullUrl }}" />
<updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.base | addPathPrefixToFullUrl }}</id>
<author>
<name>{{ metadata.author.name }}</name>
</author>
{%- for post in collections.posts | reverse %}
{%- set absolutePostUrl %}{{ post.url | htmlBaseUrl(metadata.base) }}{% endset %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}" />
<updated>{{ post.date | dateToRfc3339 }}</updated>
<id>{{ absolutePostUrl }}</id>
<content type="html">{{ post.content | renderTransforms(post.data.page, metadata.base) }}</content>
</entry>
{%- endfor %}
</feed>

BIN
src/img/2026/sample-0.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 KiB

View File

@ -1 +1,12 @@
---
layout: base.njk
eleventyExcludeFromCollections: true
pagination:
data: collections.posts
size: 13
reverse: true
alias: postlist
---
<h1>Home</h1>
{% include "postlist.njk" %}

View File

@ -0,0 +1,11 @@
---
title: Sample
date: 2026-02-17
tags:
- test
image:
src: 2026/sample-0.jpg
alt: filler
---

View File

@ -0,0 +1,9 @@
export default {
permalink: function ({ title }) {
return `/${this.slugify(title)}/index.html`;
},
tags: [
"posts"
],
layout: "base.njk"
};