4 ms·
Yes, I also found it difficult to understand how Hugo worked internally. If you’re ok with NPM, Metalsmith is a trivially simple static site generator, where y
by schemescape 4y ago
Yes, I also found it difficult to understand how Hugo worked internally.
If you’re ok with NPM, Metalsmith is a trivially simple static site generator, where you just write JavaScript code to customize it (and of course you can plug in templating tools). If you don’t like NPM, but like JS/TS, I started a port/rewrite of Metalsmith for Deno, I can share if anyone’s interested.
- cxr 4y agoIt's md2blog for anyone who is interested <https://jaredkrinke.github.io/md2blog/ https://jaredkrinke.github.io/md2blog/> The Show HN discussion from 2021: <https://news.ycombinator.com/item?id=29382091 https://news.ycombinator.com/item?id=29382091>
- schemescape 4y agoSpecifically, the internal Metalsmith-like core is here: https://deno.land/x/goldsmith@1.2.1 https://deno.land/x/goldsmith@1.2.1 Although I now see that I only documented in-code. It’s very similar to Metalsmith, except based on Deno, in TypeScript, async, and standarized on RegExp instead of a grab bag of globbing libraries. Edit: generated docs link: https://deno.land/x/goldsmith@1.2.1/mod.ts https://deno.land/x/goldsmith@1.2.1/mod.ts
- roblh 4y agoMetalsmith is cool! I hadn't heard of it til now but it looks sweet. I actually made something similar except mine isn't designed for static sites specifically. It just takes markdown, parses it into HTML (with code highlighting of course) and stores the html and frontmatter in an in memory sqlite database that gets rebuilt each time you save. Not the most efficient choice, but it makes plugging it into any front end framework like nuxt or next or svelte really easy, particularly if they have server side rendering. I guess it's almost halfway between this and PicoCMS. And you get full text search.