Hello bloggy!Published at 2025-04-14 (18:39:02)
i made a thingy for this called bloggy, it is very cool iirc πππ
How does it work?
ok so like, i made it in like 30 minutes, it isnt the best, but, hereβs what goes down:
- you pass in a lil md file
- it reads the file and is like, "hmm... is there some page metadata?"*
- then it markdowns your actual post into HTML because raw markdown is ugly for browsers lmao
- after that, it puts the content into a pre-made HTML template
- it swaps little magic comments like
<!-- [BLOGGY::TITLE] -->with your real data - then it minifies the HTML
- finally, it saves the finished blog post as a html file π₯
* page metadata is stored on the top of the markdown file, separated by a "---" at the top and the bottom. it has three values: title, description, and color.
Does it have theming?
yes, sort of. basically, all you do is create a "template.html" file and pass it into the script. all the html file needs is tags that tell bloggy where to put what.
<!-- [BLOGGY::TITLE] -->: tells bloggy where to put the title (like eg.<title><!-- [BLOGGY::TITLE] --> | unium.in</title>)<!-- [BLOGGY::DESCRIPTION] -->: tells bloggy where to put the description, basically just for seo.<!-- [BLOGGY::COLOR] -->: tells bloggy where to put the blogs color. i added this for thetheme-colormeta attribute, but you can probably use this for styling, like each post can have its own accent colors<!-- [BLOGGY::CONTENT] -->: finally, this is where the actual html-ifyd markdown content is put.
RAQ (rarely asked questions)
Q: where download :D
A: no make ur own lol
Q: can it make me a sandwich?
A: sometimes
Q: fr though where download π
A: this is very unpolished right now and im busy with school. once i get time to work on this a bit more, i will make a repo for this, and add a link to download it... somewhere idk