slow structuring
This commit is contained in:
@ -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
26
src/feed.xml
Normal 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
BIN
src/img/2026/sample-0.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 578 KiB |
@ -1 +1,12 @@
|
||||
---
|
||||
layout: base.njk
|
||||
eleventyExcludeFromCollections: true
|
||||
pagination:
|
||||
data: collections.posts
|
||||
size: 13
|
||||
reverse: true
|
||||
alias: postlist
|
||||
---
|
||||
<h1>Home</h1>
|
||||
|
||||
{% include "postlist.njk" %}
|
||||
|
||||
11
src/posts/2026/2026-02-17-sample.md
Normal file
11
src/posts/2026/2026-02-17-sample.md
Normal file
@ -0,0 +1,11 @@
|
||||
---
|
||||
title: Sample
|
||||
date: 2026-02-17
|
||||
tags:
|
||||
- test
|
||||
image:
|
||||
src: 2026/sample-0.jpg
|
||||
alt: filler
|
||||
---
|
||||
|
||||
|
||||
9
src/posts/posts.11tydata.js
Normal file
9
src/posts/posts.11tydata.js
Normal file
@ -0,0 +1,9 @@
|
||||
export default {
|
||||
permalink: function ({ title }) {
|
||||
return `/${this.slugify(title)}/index.html`;
|
||||
},
|
||||
tags: [
|
||||
"posts"
|
||||
],
|
||||
layout: "base.njk"
|
||||
};
|
||||
Reference in New Issue
Block a user