mirror of
https://github.com/skoelle/moonweb-site.git
synced 2026-09-17 17:00:25 +00:00
Consolidate all moonweb.org sites under www.moonweb.org
- Migrate timecapsule (old www.moonweb.org) into monorepo as Eleventy 2.x site - Change all site URLs from subdomains to subdirectories under www.moonweb.org - Replace Cloudflare Pages deployment with IONOS SFTP - Update site-switcher, footer, and all internal links - Add merge script for combining all sites into single deployment - Update CI/CD workflow for IONOS SFTP deployment - Update stefankoelle.de references to use new URLs - Update AGENTS.md and README.md documentation
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
const markdownIt = require("markdown-it");
|
||||
|
||||
const md = new markdownIt({ html: true, breaks: true });
|
||||
|
||||
module.exports = function (eleventyConfig) {
|
||||
eleventyConfig.addPassthroughCopy({ "src/assets": "/timecapsule/assets" });
|
||||
eleventyConfig.addPassthroughCopy({ "src/.htaccess": "/timecapsule/.htaccess" });
|
||||
|
||||
eleventyConfig.setLibrary("md", md);
|
||||
|
||||
eleventyConfig.addFilter("toIsoDate", function(dateStr) {
|
||||
var parts = String(dateStr).split("/");
|
||||
if (parts.length === 3) {
|
||||
var m = parts[0].padStart(2, "0");
|
||||
var d = parts[1].padStart(2, "0");
|
||||
var y = parts[2].padStart(4, "0");
|
||||
return y + "-" + m + "-" + d;
|
||||
}
|
||||
return dateStr;
|
||||
});
|
||||
|
||||
eleventyConfig.addPairedShortcode("pseudonymBox", function (content, title) {
|
||||
const body = md.render(content || "");
|
||||
return `<p align="right">
|
||||
<table border="0" cellspacing="1" cellpadding="3" width="350" bgcolor="#555544" class="pseudonym-box">
|
||||
<tr><td><font color="#CCAA66"><b>${title}</b></font></td></tr>
|
||||
<tr><td bgcolor="#FFFFFF">${body}</td></tr>
|
||||
</table>
|
||||
</p>`;
|
||||
});
|
||||
|
||||
return {
|
||||
dir: { input: "src", includes: "_includes", data: "_data", output: "_site" },
|
||||
markdownTemplateEngine: "njk",
|
||||
htmlTemplateEngine: "njk",
|
||||
dataTemplateEngine: "njk",
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user