Compare commits
4 commits
fa6d9a5c36
...
00e716789a
| Author | SHA1 | Date | |
|---|---|---|---|
| 00e716789a | |||
| 585a098243 | |||
| 6a83b98b0c | |||
| 965de5f3ea |
6 changed files with 67 additions and 4 deletions
|
|
@ -2,8 +2,14 @@ import { pathToFileURL } from "node:url";
|
||||||
import { evaluate } from "@mdx-js/mdx";
|
import { evaluate } from "@mdx-js/mdx";
|
||||||
import { renderToStaticMarkup } from "react-dom/server";
|
import { renderToStaticMarkup } from "react-dom/server";
|
||||||
import * as runtime from "react/jsx-runtime";
|
import * as runtime from "react/jsx-runtime";
|
||||||
|
import { feedPlugin } from "@11ty/eleventy-plugin-rss";
|
||||||
|
import { IdAttributePlugin } from "@11ty/eleventy";
|
||||||
|
|
||||||
export default function (eleventyConfig) {
|
export default function (eleventyConfig) {
|
||||||
|
eleventyConfig.setInputDirectory("site-src");
|
||||||
|
eleventyConfig.setLayoutsDirectory("layout");
|
||||||
|
eleventyConfig.setTemplateFormats(["mdx", "njk"]);
|
||||||
|
|
||||||
eleventyConfig.addExtension("mdx", {
|
eleventyConfig.addExtension("mdx", {
|
||||||
compile: async (str, inputPath) => {
|
compile: async (str, inputPath) => {
|
||||||
const { default: mdxContent } = await evaluate(str, {
|
const { default: mdxContent } = await evaluate(str, {
|
||||||
|
|
@ -18,6 +24,26 @@ export default function (eleventyConfig) {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
eleventyConfig.addPlugin(feedPlugin, {
|
||||||
|
type: "atom",
|
||||||
|
outputPath: "/feed.xml",
|
||||||
|
collection: {
|
||||||
|
name: "post",
|
||||||
|
limit: 100,
|
||||||
|
},
|
||||||
|
metadata: {
|
||||||
|
language: "en",
|
||||||
|
title: "terezi.pyrope.net",
|
||||||
|
subtitle: "mehbark posts about whatever",
|
||||||
|
base: "https://terezi.pyrope.net/",
|
||||||
|
author: {
|
||||||
|
name: "mehbark",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
eleventyConfig.addPlugin(IdAttributePlugin);
|
||||||
|
|
||||||
eleventyConfig.setNunjucksEnvironmentOptions({
|
eleventyConfig.setNunjucksEnvironmentOptions({
|
||||||
throwOnUndefined: true,
|
throwOnUndefined: true,
|
||||||
});
|
});
|
||||||
|
|
@ -26,7 +52,5 @@ export default function (eleventyConfig) {
|
||||||
eleventyConfig.addPassthroughCopy("site-src/*.png");
|
eleventyConfig.addPassthroughCopy("site-src/*.png");
|
||||||
eleventyConfig.addPassthroughCopy("site-src/**/*.html");
|
eleventyConfig.addPassthroughCopy("site-src/**/*.html");
|
||||||
|
|
||||||
eleventyConfig.setLayoutsDirectory("layout");
|
|
||||||
|
|
||||||
eleventyConfig.addGlobalData("layout", "page.njk");
|
eleventyConfig.addGlobalData("layout", "page.njk");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,11 @@
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
self-pkgs = self.packages.${system};
|
self-pkgs = self.packages.${system};
|
||||||
|
|
||||||
default-flags = ["--formats=mdx" "--input=site-src"];
|
|
||||||
eleventy-shortcut = { name, args ? [] }: pkgs.writeShellApplication {
|
eleventy-shortcut = { name, args ? [] }: pkgs.writeShellApplication {
|
||||||
inherit name;
|
inherit name;
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
npx @11ty/eleventy \
|
npx @11ty/eleventy \
|
||||||
${pkgs.lib.escapeShellArgs default-flags} \
|
|
||||||
${pkgs.lib.escapeShellArgs args} \
|
${pkgs.lib.escapeShellArgs args} \
|
||||||
"$@"
|
"$@"
|
||||||
'';
|
'';
|
||||||
|
|
|
||||||
17
package-lock.json
generated
17
package-lock.json
generated
|
|
@ -10,6 +10,7 @@
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^3.1.2",
|
"@11ty/eleventy": "^3.1.2",
|
||||||
|
"@11ty/eleventy-plugin-rss": "^2.0.4",
|
||||||
"@mdx-js/mdx": "^3.1.1",
|
"@mdx-js/mdx": "^3.1.1",
|
||||||
"react": "^19.2.3",
|
"react": "^19.2.3",
|
||||||
"react-dom": "^19.2.3"
|
"react-dom": "^19.2.3"
|
||||||
|
|
@ -135,6 +136,22 @@
|
||||||
"url": "https://opencollective.com/11ty"
|
"url": "https://opencollective.com/11ty"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@11ty/eleventy-plugin-rss": {
|
||||||
|
"version": "2.0.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/@11ty/eleventy-plugin-rss/-/eleventy-plugin-rss-2.0.4.tgz",
|
||||||
|
"integrity": "sha512-LF60sGVlxGTryQe3hTifuzrwF8R7XbrNsM2xfcDcNMSliLN4kmB+7zvoLRySRx0AQDjqhPTAeeeT0ra6/9zHUQ==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@11ty/eleventy-utils": "^2.0.0",
|
||||||
|
"@11ty/posthtml-urls": "^1.0.1",
|
||||||
|
"debug": "^4.4.0",
|
||||||
|
"posthtml": "^0.16.6"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"type": "opencollective",
|
||||||
|
"url": "https://opencollective.com/11ty"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@11ty/eleventy-utils": {
|
"node_modules/@11ty/eleventy-utils": {
|
||||||
"version": "2.0.7",
|
"version": "2.0.7",
|
||||||
"resolved": "https://registry.npmjs.org/@11ty/eleventy-utils/-/eleventy-utils-2.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/@11ty/eleventy-utils/-/eleventy-utils-2.0.7.tgz",
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^3.1.2",
|
"@11ty/eleventy": "^3.1.2",
|
||||||
|
"@11ty/eleventy-plugin-rss": "^2.0.4",
|
||||||
"@mdx-js/mdx": "^3.1.1",
|
"@mdx-js/mdx": "^3.1.1",
|
||||||
"react": "^19.2.3",
|
"react": "^19.2.3",
|
||||||
"react-dom": "^19.2.3"
|
"react-dom": "^19.2.3"
|
||||||
|
|
|
||||||
21
site-src/awesomebark.mdx
Normal file
21
site-src/awesomebark.mdx
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
---
|
||||||
|
title: Awesomebark
|
||||||
|
description: The awesome story of my super cool username
|
||||||
|
tags: post,short
|
||||||
|
date: 2026-01-25 00:10:00
|
||||||
|
---
|
||||||
|
|
||||||
|
Awesomebark was the username the PlayStation Network gave me when I played Minecraft online on the PS3.
|
||||||
|
I messed around with the adjective for a while
|
||||||
|
(and made a truly vomitous [r/wholesomememes](https://old.reddit.com/r/wholesomememes/) post that I would never subject you to),
|
||||||
|
but I eventually stuck with meh in a somewhat self-deprecating fashion.
|
||||||
|
|
||||||
|
It's a good username though!
|
||||||
|
- Unlikely to be taken (unless I get super famous, which I guess could happen)
|
||||||
|
- Two syllables
|
||||||
|
- Seven letters
|
||||||
|
|
||||||
|
The only con is that it makes me seem like more of a dog person than I really am.
|
||||||
|
Oh the horror. Dogs are cool don't get me wrong, but I'm a bit allergic.
|
||||||
|
|
||||||
|
This post really has a meh tone, huh?
|
||||||
|
|
@ -25,6 +25,8 @@ title: terezi.pyrope.net
|
||||||
<meta property="og:site_name" content="terezi.pyrope.net">
|
<meta property="og:site_name" content="terezi.pyrope.net">
|
||||||
<meta name="twitter:image" content="/res/pyralspite.webp">
|
<meta name="twitter:image" content="/res/pyralspite.webp">
|
||||||
<meta name="theme-color" content="#008282">
|
<meta name="theme-color" content="#008282">
|
||||||
|
|
||||||
|
<link rel="alternate" type="application/atom+xml" href="/feed.xml" title="terezi.pyrope.net atom feed">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 id="site-title"><a href="/">T3R3Z1.PYROP3.N3T</a></h1>
|
<h1 id="site-title"><a href="/">T3R3Z1.PYROP3.N3T</a></h1>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue