Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I found his GEMINI approach quite funny - it strips out most of the formatting with a regexp.

There is a bit of a limitation, though - I organize posts by namespace and with the date in the URL, and make can’t really handle that directly.



> I found his GEMINI approach quite funny - it strips out most of the formatting with a regexp.

Do you mean the regexp in https://github.com/karlb/karl.berlin/blob/master/blog.sh#L4 ? It doesn't remove the formatting, just HTML comments (because they would show up on the page, otherwise) and rel="me" attributes (because they don't work with md2gemini). Feel free to read the blog post about adding Gemini support for more details: https://www.karl.berlin/gemini-blog.html


Huh, I previously skim-read the code and didn't notice the GEMINI regex detail. I wonder why they're doing that.

Re: namespace organisation. I thought about that a lot, and decided to adopt namespace-only convention for symmetry between text file layout, html file layout, and url scheme.

I've treated Date/time as metadata, which I can use to organise index pages. If I get to years worth of posts, then I'll group them by year/month or something reasonable. Likewise tags. I debated tags _and_ categories. But I decided on "everything is a post with tags, and categories will emerge based on topical coverage + post format".




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: