Midnight Pub

redacted

~invicta

redacted


contrarian

If you want to be a cool kid, use this.

https://werc.cat-v.org/

reply

invicta

WHOA this looks cool. i'll mess around with this!

reply

contrarian

https://github.com/matthewp/haunted

https://github.com/WebReflection/uland

https://learnbchs.org/

reply

amvc

I had to wrangle Pelican into doing what I wanted (a site with multiple pages, all at the same level, and a blog in a sibling directory), but it ended up being Not Pretty.

Pelican static site generator

And Hugo was worse, as the other patrons here have witnessed. It's frustrating.

reply

invicta

oh gosh i remember pelican floating around a few years ago. looking through the docs makes me a little weary since it expects content to be structured a certain way when i just want to do any own thing. definitely will look further into it to see what it's got.

reply

amvc

Yeah, it just pisses me off that all the SSGs seem to be blog-first. As I said, I was able to do it but had to mess a lot with templates and stuff.

reply

mayaks

hey, I very much understand the pain as I was trying a couple of static site generators like 11ty, hugo etc, and all of them are rather bloated and not very intuitive for custom usage.

I looked at your specific question and I think it can work with some tags setup, but then it will probably require some extra JS.

What I can also suggest is to go with markdown and then convert MD to HTML, you can use shell script as starbreaker suggested but I can also recommend just writing one simple JS file where you can use default node fs to list all the files (then you can create an index file to access all pages in the directory) and convert MD with some simple npm package and then just save all results. Then just add some simple css on top to make it look nicer than pure HTML. I bet it can be a very short script tbh.

reply

invicta

that's a pretty smart idea actually, using node.js to create index files. i'm going to look further into this and see what i can come up with!

reply

starbreaker

This is something I'd do with shell scripts called from a makefile, while converting markdown to HTML using pandoc. Of course, the shell scripts would have to use find, sed, grep, and cut to generate the indexes.

reply

invicta

i know a little about shell scripts thanks to the insane linux customization community, but not nearly enough to do something like that. grep has always been kind of went over my head even though a lot of linux users seem to swear by it. would you happen to have any resources for learning more about shell scripts?

reply

starbreaker

Hi, ~invicta. I learned a lot from this tutorial and keep it bookmarked for reference.

Steve Parker's Shell Scripting Tutorial
reply

tatterdemalion

Hmmm. I would know how to do this in Hugo, but just getting Hugo set up is an enormous PITA, so I'm not actually recommending it.

reply

invicta

yeah, i remember dealing with hugo once to set up a blog but making layouts and themes for it was such a pain that i never went back to it. there's gotta be something that can elegantly loop through folders and spit out a list of links to each file under that folder...

reply