migrate from 11ty to Lume
This commit is contained in:
parent
491694c19d
commit
00ff630785
18 changed files with 574 additions and 4226 deletions
8
src/_data.yml
Normal file
8
src/_data.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
lang: en
|
||||
metas:
|
||||
site: Cheri's pink site
|
||||
description: A personal website with random things, sometimes a blog, Cherie's corner of the internet.
|
||||
title: "=title"
|
||||
fediverse: "@cheri@snug.moe"
|
||||
icon: /media/cherry-blossom.png
|
||||
lang: en
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"name": "Cheri's pink site",
|
||||
"url": "https://cheri.pink",
|
||||
"authorName": "cheri",
|
||||
"description": "A personal website with random things, sometimes a blog, Cherie's corner of the internet.",
|
||||
"language": "en"
|
||||
}
|
|
@ -3,16 +3,14 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="author" content="{{ site.authorName }}">
|
||||
<meta name="description" content="{{ site.description }}">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
||||
|
||||
<title>{{ title }} - cheri.pink</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="stylesheet" href="/elements.css">
|
||||
<title>{{ title }}</title>
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="stylesheet" href="/elements.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<ul>
|
||||
{% for post in listposts | reverse %}
|
||||
<li>
|
||||
<strong><a href="{{ post.url | url }}"> {{ post.data.title }}</a></strong>
|
||||
-
|
||||
<time datetime="{{ post.date | htmlDateString}}">{{ post.date | readableDate}}</time>
|
||||
<br><small>{{ post.data.description }}</small>
|
||||
</li>
|
||||
{% for post in search.pages("type=post", "date=desc") %}
|
||||
<li>
|
||||
<strong><a href="{{ post.url }}"> {{ post.title }}</a></strong>
|
||||
-
|
||||
<time datetime="{{ post.date | date}}">{{ post.date | date}}</time>
|
||||
<br><small>{{ post.description }}</small>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -3,7 +3,7 @@ layout: base.njk
|
|||
---
|
||||
<div class="title">
|
||||
<h1>{{ title }}</h1>
|
||||
<time datetime="{{ date | readableDate }}">{{ date | postDate }}</time>
|
||||
<time datetime="{{ date | date }}">{{ date | date('HUMAN_DATE') }}</time>
|
||||
</div>
|
||||
<article>
|
||||
{{ content | safe }}
|
||||
|
|
25
src/feed.njk
25
src/feed.njk
|
@ -1,25 +0,0 @@
|
|||
---
|
||||
permalink: /feed.rss
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:base="{{ site.url }}" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ site.name }}</title>
|
||||
<link>{{ site.url }}</link>
|
||||
<atom:link href="{{ permalink | absoluteUrl(site.url) }}" rel="self" type="application/rss+xml" />
|
||||
<description>{{ site.description }}</description>
|
||||
<language>{{ site.language }}</language>
|
||||
{%- for post in collections.posts | reverse %}
|
||||
{%- set absolutePostUrl = post.url | absoluteUrl(site.url) %}
|
||||
<item>
|
||||
<title>{{ post.data.title }}</title>
|
||||
<link>{{ absolutePostUrl }}</link>
|
||||
<description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description>
|
||||
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
|
||||
<dc:creator>{{ site.authorName }}</dc:creator>
|
||||
<guid>{{ absolutePostUrl }}</guid>
|
||||
</item>
|
||||
{%- endfor %}
|
||||
</channel>
|
||||
</rss>
|
|
@ -5,7 +5,6 @@ permalink: /posts/
|
|||
|
||||
<center><h1>My blog posts :3</h1></center>
|
||||
|
||||
{% set listposts = collections.posts %}
|
||||
{% include "listposts.njk" %}
|
||||
|
||||
<center><img src="/media/my-blog-is-safe.png" alt="Tumblr post reading: my blog is a safe space for me. the rest of you are in danger i think" width="500"></center>
|
||||
|
|
2
src/posts/_data.yml
Normal file
2
src/posts/_data.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
layout: post.njk
|
||||
type: post
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"layout": "post.njk",
|
||||
"tags": "posts"
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
permalink: /sitemap.xml
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{% for page in collections.all %}
|
||||
<url>
|
||||
<loc>{{ site.url }}{{ page.url | url }}</loc>
|
||||
<lastmod>{{ page.date.toISOString() }}</lastmod>
|
||||
</url>
|
||||
{% endfor %}
|
||||
</urlset>
|
Loading…
Add table
Add a link
Reference in a new issue