Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion _includes/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title | default: "Thoughts from beyond dreamscape." }}</title>
<link rel="stylesheet" href="/styles/bundle.css">
<link rel="stylesheet" href="/styles/prism-base16-monokai.dark.css">
</head>
<body>
<header>
Expand All @@ -24,7 +25,7 @@ <h1>{{ title }}</h1>
</div>
<footer>
<div class="container">
<p>&copy; {% year %} Beyonddream. All rights reserved.</p>
<p>&copy; 2025 Beyonddream. All rights reserved.</p>
</div>
</footer>
</body>
Expand Down
43 changes: 40 additions & 3 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,43 @@
export default function(eleventyConfig) {
const pluginRss = require("@11ty/eleventy-plugin-rss");
const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const pluginNavigation = require("@11ty/eleventy-navigation");
const markdownIt = require("markdown-it");
const markdownItAnchor = require("markdown-it-anchor");
const { DateTime } = require("luxon");

module.exports = function(eleventyConfig) {

// Add plugins
eleventyConfig.addPlugin(pluginRss);
eleventyConfig.addPlugin(pluginSyntaxHighlight);
eleventyConfig.addPlugin(pluginNavigation);

eleventyConfig.addPassthroughCopy("styles");

// Add shortcode for current year
eleventyConfig.addShortcode("year", () => `${new Date().getFullYear()}`);
// Customize Markdown library and settings:
let markdownLibrary = markdownIt({
html: true,
breaks: true,
linkify: true,
}).use(markdownItAnchor, {
permalink: markdownItAnchor.permalink.ariaHidden({
placement: "after",
class: "direct-link",
symbol: "#",
level: [1, 2, 3, 4],
}),
slugify: eleventyConfig.getFilter("slug"),
});
eleventyConfig.setLibrary("md", markdownLibrary);

eleventyConfig.addFilter("readableDate", (dateObj) => {
return DateTime.fromJSDate(dateObj, { zone: "utc" }).toFormat(
"dd LLL yyyy"
);
});

// https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-date-string
eleventyConfig.addFilter("htmlDateString", (dateObj) => {
return DateTime.fromJSDate(dateObj, { zone: "utc" }).toFormat("yyyy-LL-dd");
});
};
Empty file added images/.gitkeep
Empty file.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
layout: layout.html
---
<ul class="post-list">
{% for post in collections.post %}
{% for post in collections.post reversed %}
<li>
<div class="post-header">
<span class="post-date">{{ post.date | date: "%Y-%m-%d" }}</span>
<span class="post-date">{{ post.date | htmlDateString }}</span>
<a class="post-title" href="{{ post.url }}">{{ post.data.title }}</a>
</div>
{% if post.data.description %}
<p>{{ post.data.description }}</p>
{% endif %}
</li>
{% endfor %}
</ul>
</ul>
21 changes: 16 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,22 @@
"version": "1.0.0",
"description": "Beyonddream's blog",
"scripts": {
"start": "npx @11ty/eleventy --serve",
"build": "npx @11ty/eleventy"
"build": "npx @11ty/eleventy",
"start": "npx @11ty/eleventy --serve",
"debug": "DEBUG=* eleventy"
},
"license": "MIT",
"dependencies": {
"@11ty/eleventy": "^3.1.0"
"author": {
"name": "Beyonddream",
"url": "https://www.beyonddream.me"
},
"devDependencies": {
"@11ty/eleventy": "^3.1.0",
"@11ty/eleventy-plugin-rss": "^2.0.4",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.1",
"@11ty/eleventy-navigation": "^1.0.4",
"markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.2.0",
"luxon": "^3.6.1"
}
}
}
1 change: 1 addition & 0 deletions posts/post-1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: How to read and write a set of deeply nested datetime partitioned files using Spark (Pre and Post LLM Coding Agents)
date: 2025-05-30
---

## Introduction
Expand Down
Loading