recently i have been written a piece of software, which can sync diaspora stream to hugo blog. hugo is a static site generator. you provide it markdown files, and a theme, and it generates you html/css files.
the main intention was, to get the own tag cloud, and better navigation of all my streams. every post synced from diaspora has a link to the original post on my pod. now it is indeed very pleasurable to see all my history categorized, and i am able to find exact post very easy. yesterday someone asked me about the post from the winter 2014, and it took me a couple of minutes to find it.
So this is the software: https://github.com/norayr/diaspora2hugo I have to make a readme, document it. And I realize that it’s not easy to use it, because first one needs to download an Oberon compiler, in order to compile the program. But I doubt anyone would use it anyway. Also, because in order to use it you have to be a podmin.
so, how does it work? you call
lets say, I write
and get markdown files for all my public posts from postgre database.
the files look like
year-month-day_post_id_spyurk,md (spyurk means diaspora in armenian, also that’s my pod name).
But then, I need to update the blog, starting from the last post. No problem!
d2h <username> <last_post_id>
i also added a cron job, which runs a script every night, and syncs diaspora to hugo blog starting from the last post. #diaspora #hugo #blog #migration #sync #cron #oberon #vishap #markdown