Andrew on Nostr: If SSGs generate static pages from static files, then JSON files are their databases. ...
If SSGs generate static pages from static files, then JSON files are their databases.
I’ve been poking around and figured out how to generate a page from a JSON (my Backloggery replacement), how to use it to make consistent icons across partials and shortcodes¹, and how to maybe² make a whole minuscule blog (microblog, but smaller) completely from one file, which makes a one command to publish idea even easier, since you don’t have to worry about directories or front matter or anything.
#hugo
Published at
2024-11-10 09:00:08Event JSON
{
"id": "2a57c5cf1d1c6cf1da7fc94d62628c10da80f854862deef26e085b78881ac1b0",
"pubkey": "1bd8da6f61ca4da4a35844d9e60da3bc2edf3ac40a1293182b4050d44afef684",
"created_at": 1731229208,
"kind": 1,
"tags": [
[
"t",
"hugo"
],
[
"proxy",
"https://mastodon.online/users/alsorew/statuses/113457837397998649",
"activitypub"
]
],
"content": "If SSGs generate static pages from static files, then JSON files are their databases.\n\nI’ve been poking around and figured out how to generate a page from a JSON (my Backloggery replacement), how to use it to make consistent icons across partials and shortcodes¹, and how to maybe² make a whole minuscule blog (microblog, but smaller) completely from one file, which makes a one command to publish idea even easier, since you don’t have to worry about directories or front matter or anything.\n\n#hugo",
"sig": "83596d51b3180ba07b02decf0a511e21b1ae17c74abfc8e23e1472f9839c8ef29f25913731200f3f3911852f9206a85e3f4e404dbc13a6705aeec67fa156ad25"
}