anyone doing server-side static rendering of longform content for hosting peoples nostr blogs? if not it's something we could provide on notecrumbs.
Discussion
i guess njump does this, but would be cool if the author could customize the design and create a listing of just their longform posts
this is oracolo...
what's that
the link https://github.com/dtonon/oracolo
it does the complete opposite of what I was looking for. it does no static rendering or caching on the server.
would be good to have something like that for individual particles for example
I have this on my list of ideas. I like hugo for static sites and want to write something that scaffolds the site and fetches content with nak. rebuild on a cron. tons of free theme, easy to customize.
but first i have to finish the other thing.
i can separate content by kinds too. so /blog could be longform and /log could be short notes. the key is just rebuilding whatever the content is on a schedule - or event driven. i go back and forth on actually hosting other peoples stuff. it would make it completely turn key but has downsides.
event driven would be fun just because i could spin up a key for the service. it follows you to receive events and schedule rebuilds. opens up zaps for funding
finally, i’ve considered building all of this in github with actions. i think i could shove all the logic into a github action and folks could get free hosting on github pages. but im less excited to go read their docs
yeah exactly what I was thinking.
I also want a hostless version so it does it automatically for everyone
I am also in need of such a thing. Not satisfied with how my code listings look on other platforms. I might do it myself one day.
yeah exactly. users should be able to customize the style
It’s not customizable at the moment, but it’s going to be.
The front page is currently a demo magazine with various authors, but each author has a dedicated page and longform articles are server-side rendered.
looks good!
It's more architecturally complex than a mere feed (although it also has those, by author). It's an actual curated publication containing a defined list of articles from whichever authors the editor(s) want to include.
It's an online magazine that is specifically assembled and published, in editions.
So, someone could create one for only their own articles, or for articles covering some topic, or for a company, etc. And format the content, very specifically, according to their own brand. I could do one for German-language articles, for instance.
At least, this is how I understood the underlying concept, nostr:npub1636uujeewag8zv8593lcvdrwlymgqre6uax4anuq3y5qehqey05sl8qpl4 .
I do my reads on Primal, though I wouldn't mind getting my reads on there soon.
Can I ask you to share the repo url if you have one?
Yo... Some PHP. Lets go! nostr:npub1l5sga6xg72phsz5422ykujprejwud075ggrr3z2hwyrfgr7eylqstegx9z
I love PHP.

With composer, would I be able to stuff in a MySql database instead of postgress? Same goes with disabling redis caching?
Yep. None of it is set in stone. I have a lite version in mind also, for a single magazine. While Newsroom is meant to become a newsstand eventually. The db is really thin. And if you’d be using it for a single magazine-like website, you don’t need redis at all.
there doesn't seem to be a way to see a statically generated version of my longform posts here. so no.
I think this is quite easily achieved with hugo, given that there is a relay to query for the posts
https://gohugo.io/functions/transform/unmarshal/#global-resource (see remote ressources)