Open narthur opened 8 months ago
@dreeves You mentioned here that moving away from using begin-magic to set post titles could be a future task. This would actually be quite easy for us to do since we already have the code to pull and parse the existing titles, so writing a script to take all those titles and add them to posts.json would be trivial. Can we get the go-ahead to do this?
It's the other way around. The markdown rendering for etherpad (aka expost) needs the titles; they can't live in posts.json. DRYing this up means getting the titles out of posts.json.
As a sanity check, can we get the list of any titles that don't already match?
Or break the build if they don't match -- that's a simple way to see which ones don't match and is a nice failsafe. Of course that failsafe will be moot when we DRY this up, but that's fine.
Relatedly, I may have changed my mind about every field needing to be explicit in posts.json. Candidate exceptions:
title
is fetched from the source doc's begin-magic (this gissue) and shouldn't be in posts.json at alldisqus_id
defaults to slug
if not presentredirects
defaults to []
if not presentDecision:
Cognata
382
371
Verbata: DRY, titles of blog posts in two places,