Hacker News new | ask | show | jobs
by zaptheimpaler 976 days ago
I was just thinking about what the easiest way would be to create a blog with mostly static content but with room for interactive graphs or arbitrary customization if i want it. Is this a good option?

Another option I saw was Quarto [1]. Maybe even a simple static site blog like Jekyll can be used as well where i just edit the output HTML as needed? What do you all recommend?

[1] https://quarto.org/

3 comments

I use XHTML, mixed with a little custom XML, and processing with XSLT to produce final XHTML [1]: all of HTML is usable that way, the generation process is customizable, the dependencies are relatively easily manageable, the involved formats are standardized.

[1] https://git.uberspace.net/homepage/

I would very highly recommend Astro [0]. Astro lets you write React-style components that compile to plain HTML/CSS (unless you _actually_ need JavaScript). My personal site and blog [1] is built with Astro

Here's their tutorial on building a blog with Astro: https://docs.astro.build/en/tutorial/0-introduction/

[0]: https://astro.build/

[1]: https://sjer.red/ source at https://github.com/shepherdjerred/shepherdjerred.com

You could also go down the route of using shortcodes in Hugo (I think there is something similar as well for Jekyll?) and use the output HTML file as the input for a shortcode from data visualization libraries such as Vega-Altair (Python) or plotly.