boink. published.

This commit is contained in:
Hans Fast 2026-03-31 17:00:48 +02:00
parent 93414ac714
commit 28b9019052
7 changed files with 46 additions and 2 deletions

View File

@ -48,7 +48,7 @@ The reason for this setup step is that on my machine, the parent directory conta
<trl-alt lang="en"> <trl-alt lang="en">
## Markup Language ## 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.
</trl-alt> </trl-alt>
<trl-alt lang="nl"> <trl-alt lang="nl">
@ -63,6 +63,9 @@ Ik heb een formaat ontwikkeld voor tekst die beter bij mijn doelen past dan Mark
## Changes and Updates ## Changes and Updates
This section SHALL describe the idea behind the [Changelog](/changelog). 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).
<p>—private-below—</p> <p>—private-below—</p>
EXCEPT NOT REALLY! In this case, because this file is hardlinked to `README.md` inside a publicised git repository. You have been warned! EXCEPT NOT REALLY! In this case, because this file is hardlinked to `README.md` inside a publicised git repository. You have been warned!

View File

@ -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._

3
config.ori Normal file
View File

@ -0,0 +1,3 @@
(all) => {
siteurl: all? "http://localhost:5000" : "https://hansfast.net"
}

View File

@ -7,6 +7,8 @@
<title>${page.title}</title> <title>${page.title}</title>
<link href="/ad_pubfiles_pub.d/css/style.css" rel="stylesheet"> <link href="/ad_pubfiles_pub.d/css/style.css" rel="stylesheet">
<link rel="icon" href="/ad_pubfiles_pub.d/images/favicon.svg"> <link rel="icon" href="/ad_pubfiles_pub.d/images/favicon.svg">
<link rel="alternate" title="Changelog Feed — JSON" type="application/feed+json" href="${config.ori(page.all)/siteurl}/changelog.json">
<link rel="alternate" title="Changelog Feed — RSS" type="application/rss+xml" href="${config.ori(page.all)/siteurl}/changelog.rss">
</head> </head>
<body> <body>
${page.all?'<p>private mode</p>':''} ${page.all?'<p>private mode</p>':''}

View File

@ -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)
}))
}

View File

@ -76,4 +76,19 @@
index.html: ori-templates/indexPage.ori(final, all) index.html: ori-templates/indexPage.ori(final, all)
...onlyLinkedFiles ...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)
} }

View File

@ -3,4 +3,6 @@
index.html: src/index.html index.html: src/index.html
...src/pagesInFolders ...src/pagesInFolders
...src/onlyLinkedFiles ...src/onlyLinkedFiles
changelog.json: Tree.json(src/changelogFeed)
changelog.rss: Origami.rss(changelog.json)
} }