From 28b9019052a0bc4e622e312c3a9129f1824cdcda Mon Sep 17 00:00:00 2001 From: Hans Fast Date: Tue, 31 Mar 2026 17:00:48 +0200 Subject: [PATCH] boink. published. --- README.md | 5 ++++- _index.md | 2 +- config.ori | 3 +++ ori-templates/base_html.ori | 2 ++ ori-templates/changelog-feed.ori | 19 +++++++++++++++++++ pipeline.ori | 15 +++++++++++++++ site.ori | 2 ++ 7 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 config.ori create mode 100644 ori-templates/changelog-feed.ori diff --git a/README.md b/README.md index 43b2158..297ca0b 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ The reason for this setup step is that on my machine, the parent directory conta ## Markup Language -I have developed a text markup format which suits my needs better than Markdown. The parser works and I can render HTML with it, but the feature set is still very limited. For example, I can only render single works in italic. That might seem like an odd sort of limitation, but it's because I've started from somewhat different first principles than the assumptions the HTML/Markdown worfklow is based on. As we all know, the last 10% takes the most work. So to start with, I'm formatting the source files in Markdown. +I have developed a text markup format which suits my needs better than Markdown. The parser works and I can render HTML with it, but the feature set is still very limited. For example, I can only render single works in italic. That might seem like an odd sort of limitation, but it's because I've started from somewhat different first principles than the assumptions the HTML/Markdown worfklow is based on. As we all know, the last 10% takes the most work. So for now, I'm formatting the source files in Markdown. @@ -63,6 +63,9 @@ Ik heb een formaat ontwikkeld voor tekst die beter bij mijn doelen past dan Mark ## Changes and Updates This section SHALL describe the idea behind the [Changelog](/changelog). +## Source files +The scripts and templates used to build this site are available [here](https://git.surfacemarkup.net/hans/ad_pubfiles). +

—private-below—

EXCEPT NOT REALLY! In this case, because this file is hardlinked to `README.md` inside a publicised git repository. You have been warned! diff --git a/_index.md b/_index.md index 6c02fce..be4cc2a 100644 --- a/_index.md +++ b/_index.md @@ -1 +1 @@ -_This content will go on the homepage._ +_Welcome! You're one of the lucky ones seeing a very early version of this site._ diff --git a/config.ori b/config.ori new file mode 100644 index 0000000..57ccb99 --- /dev/null +++ b/config.ori @@ -0,0 +1,3 @@ +(all) => { + siteurl: all? "http://localhost:5000" : "https://hansfast.net" +} diff --git a/ori-templates/base_html.ori b/ori-templates/base_html.ori index 252bc23..ee1a9dc 100644 --- a/ori-templates/base_html.ori +++ b/ori-templates/base_html.ori @@ -7,6 +7,8 @@ ${page.title} + + ${page.all?'

private mode

':''} diff --git a/ori-templates/changelog-feed.ori b/ori-templates/changelog-feed.ori new file mode 100644 index 0000000..cd2ecfd --- /dev/null +++ b/ori-templates/changelog-feed.ori @@ -0,0 +1,19 @@ +// The posts in JSON Feed format +(description, outline, all) => { + version: "https://jsonfeed.org/version/1.1" + title: "Changelog — hansfast.net" + feed_url: `${config.ori(all)/siteurl}/changelog.json` + home_page_url: config.ori(all)/siteurl + user_comment: "You are looking at the raw feed data for this site's changelog. This data is meant to be consumed by a 'feed reader'. Look for your software's instructions on how to add this url." + description + + // Map the post data to JSON Feed items + items: Tree.values(Tree.map(outline, (value, key) => { + date_published: post.date + id: url + title: post.title + url: `${config.ori(all)/siteurl}/changelog#${Origami.slug(key)}` + content_text: value + content_html: Origami.mdHtml(value) + })) +} diff --git a/pipeline.ori b/pipeline.ori index c2d8fd6..d35ee6f 100644 --- a/pipeline.ori +++ b/pipeline.ori @@ -76,4 +76,19 @@ index.html: ori-templates/indexPage.ori(final, all) ...onlyLinkedFiles + + //feed ... + //uh, mdoutline doesn't seem to be doing what it says! Experiment time ... + //yeah, looks weird. The first heading is taken to be the root title. weird. + //workaround: add a dummy level-1 heading. + //Further: ugh. I need the mdOutline to get the changelog entries, but then I don't have ID info and stuff. + //I anyways don't have good IDs for the headings. grr. + changelogSrc: `# posts + +${pubfiles/ab_changelog_pub.ori.md/_body}` + changelogOutline: Origami.mdOutline(changelogSrc) + changelogItems: Tree.mask(changelogOutline/posts, {...Tree.constant(true), _text: false}) + changelogFeed: ori-templates/changelog-feed.ori(changelogOutline/posts/_text, changelogItems, all) + } + diff --git a/site.ori b/site.ori index 1cd6078..95c266f 100644 --- a/site.ori +++ b/site.ori @@ -3,4 +3,6 @@ index.html: src/index.html ...src/pagesInFolders ...src/onlyLinkedFiles + changelog.json: Tree.json(src/changelogFeed) + changelog.rss: Origami.rss(changelog.json) }