Does #Hugo support calling any kind of external command to produce/post-process output files these days?
I'd like to generate a Gemtext (geminiprotocol.net) version of my pages, but don't see how I'll be able to write a plain template that does this. Instead, I think I'd go with converting the input Markdown somehow.
I've found github.com/n0x1m/hugoext, but it just runs over your content as an external tool.
I see people talking about Pandoc Lua filters, do these only run externally too?
GitHub - n0x1m/hugoext: Hugoext allows to pipe Go Hugo markdown content files through an arbitrary processing tool. It abides the same destination file tree for thoser file types with the processed output.
Hugoext allows to pipe Go Hugo markdown content files through an arbitrary processing tool. It abides the same destination file tree for thoser file types with the processed output. - n0x1m/hugoextGitHub
scy
Als Antwort auf scy • • •Right now, my impression of #Hugo is "it's pretty nice _if_ it contains exactly everything you need, but if it doesn't, you basically have to resort to ugly hacks because it doesn't provide any way of integrating external tools".
Like, you can't even write plugins for this thing if you were to write them in Go, let alone call other binaries.
And all due to some ominous "security".
Dude I trust my content authors (it's me) and template authors (also me), let me call a scriiiiiipt
scy
Als Antwort auf scy • • •My existing website content goes back more than 20 years. I hope to write on the web (or whatever follows it) for another 40.
Selecting a tool for building my website is a big deal, as I'll be writing content _for that tool_ for years, possibly for decades¹.
If that tool doesn't integrate well with whatever shenanigans I'm up to, it's of no use to me.
¹ Which is also why I'm mainly looking into SSGs written in Go or Rust. I want to be able to keep a binary around that still works in 20 years.
equi
Als Antwort auf scy • • •"keep a binary around"…
I feel a need to point out neither old statically linked Linux a.out binaries (regardless of platform) nor Mac OS PowerPC binaries can be easily executed these days… even Windows is refusing some old crap at this point. (tbh I'm not sure this is a solvable problem.)
scy
Als Antwort auf equi • • •@equinox People are running DOS in their browsers these days.
I'm not saying that it's gonna be _pretty_, but I'm pretty sure it's gonna be _possible_ in some way. And it's probably gonna be _more_ pretty than cobbling together a bunch of 30 year old Python dependencies when PyPI is possibly long gone.
equi
Als Antwort auf scy • • •I don't disagree, I'm just not sure the "statically linked" part is incredibly valuable here. And if you have to rebuild a Go or Rust app you have the same problem as with PyPI…
Feels like the key is rather to keep (copies of) all of the dependencies locally, to the greatest extent possible 🙂
arne_rules!
Als Antwort auf scy • • •scy
Als Antwort auf arne_rules! • • •arne_rules!
Als Antwort auf scy • • •GitHub - bahlo/pichu: The static site generator designed to evolve with your needs.
GitHubMichael Stapelberg 🐧🐹😺
Als Antwort auf scy • • •I get where you’re coming from and I also appreciate hugo being a static binary that I can just keep using for years.
But, I think for the 5 to 10 year horizon, it makes more sense to think about the *data format* compared to *the implementation*.
As in: I choose to blog in markdown, because I know there will be tooling for that in 10+ years still.
Maybe I’ll need to update my configs, or templates, or whatever, but I’ll be able to keep my *content*
scy
Als Antwort auf Michael Stapelberg 🐧🐹😺 • • •@zekjur Oh, sure, the content is more important.
But then again, the content isn't completely independent of the SSG. Directory structure, front matter, shortcodes, that's all contributing to a certain level of vendor lock-in. And Markdown has dialects, too.
Sure, you can write sophisticated shell scripts to convert your content to your new SSG in a few years, but that can be a large piece of work. (It's something that still awaits me for my old blog content 😔)
Fink
Als Antwort auf scy • • •Gemini Mirror from Hugo
jonathanmh.comscy
Als Antwort auf Fink • • •