3 ms·
I wrote a Go program to generate my blog (which is just a static site hosted on Github pages). I made it so that I could write blog posts with a "widget builder
by liampulles 1y ago
I wrote a Go program to generate my blog (which is just a static site hosted on Github pages). I made it so that I could write blog posts with a "widget builder" DSL, which is a good compromise for me between customizabiity for individual pages vs being able to write 95% of everything with markdown.
Example of DSL: https://github.com/liampulles/liampulles.github.io/blob/master/htmlgen/site/blog_jira-tickets.go https://github.com/liampulles/liampulles.github.io/blob/mast...
Blog post with more info, and my site: https://liampulles.com/moving-blog.html https://liampulles.com/moving-blog.html
- lelanthran 1y agoMy blog[1] is also generated from nothing but markdown, but I leaned on pandoc heavily for this: https://gist.github.com/lelanthran/2634fc2508c93a437ba5ca511fafa99d https://gist.github.com/lelanthran/2634fc2508c93a437ba5ca511... --------------------- [1] www.lelanthran.com
- liampulles 1y agoInteresting approach, I like it!
- yboris 1y agoAwesome! I'm curious if you considered Hugo and if yes, why you preferred to build your own Go website generator :)
- liampulles 1y agoI considered Hugo, but I wanted to do my own thing mainly because I'm very fussy about the raw HTML in my site, i.e. I want to use semantic HTML5 tags as much as possible. I haven't used Hugo though so I could not say how good or bad it is.
- cookiengineer 1y agoJust FYI: The meta viewport tag disallows zooming/using your website. I had to switch to Desktop mode on my Android phone to be able to read half the content that was overflowing and not visible.
- liampulles 1y agoThanks for the feedback, I will look into this.