An article has an address and an identity
Some more detail on that Git database idea, for those who did not get tired with previous one. I see directory structure which reflects URL path from site root. At the end, directory named after article slug, with `article.md` and some metadata file beside it. Nothing too exotic, so far.
For metadata I suggested `<uuid>.json`. Not yet sure on JSON, exact model is also to see, but having UUID visible through filesystem could help to index our database. Find the identity, see directory where it lives, there is current address. We do not need to open every metadata file just for that part.
My existing blog has year/month/day/slug shape. Article can get updated title, which draws new slug, and if update is marked as major then calendar part changes too. Now, if someone has link to old address, would be good that they still reach article. Also comments belong to article, not to whichever title I happened to like when first published it.
So UUID stays, address can move. Old published address has to redirect to new one. Where exactly we keep those old paths and how generator prepares redirects, that is still open. Git remembers changes, yes, but not every draft address was ever live... little detail worth keeping in mind.
I also had to stop calendar shape from becoming rule for whole site. It is just one option. Real site needs general paths, at least for several special pages. When I applied for Google login to use for controlled comments, those privacy and similar pages became something to prepare before going from testing to production. I called them political pages... well, policy pages, but you got the idea.
Those can have plain paths, no date needed. Same basic package of text and metadata could work there too. Root metadata could keep global site preferences. And that is about all I currently see in this repository, besides assets which still need some thought.
Images... yes, existing blog is too dry without them. I did not implement that yet. Would like to have them here, other possible assets too, only let us see where and how before declaring some final arrangement. For now there is enough shape to put real files in directories and try to work with that. Which is already more fun than only talking on it.