TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Saait: a boring HTML page generator

35 pointsby weeberover 6 years ago

5 comments

sephoricover 6 years ago
I was considering using bash, some command line markdown transformer, and a makefile to transform my blog posts from markdown into HTML by wrapping them in an HTML template that just have the strings $TITLE, $BODY, and $DATE substituted. I think that would be a fun way to do this with zero C code. One of the hard parts was figuring out how to avoid too many nested data structures, like embedded title in the markdown files via front matter. But I figured out that if all you have is a title and it&#x27;s a one-line string, you can just use the `head` and `tail` command line utils to extract either the title string or the markdown body depending on which operation you&#x27;re in the middle of, and you can still just use bash (except for the markdown converter). I plan to use this on my blog[1], and maybe also to generate a blog index.<p>[1] <a href="https:&#x2F;&#x2F;sephware.com&#x2F;blog&#x2F;" rel="nofollow">https:&#x2F;&#x2F;sephware.com&#x2F;blog&#x2F;</a>
评论 #18994569 未加载
nicoburnsover 6 years ago
Despite having fewer features, this looks considerably less easy to use (and certainly less well documented!) than Hugo (<a href="https:&#x2F;&#x2F;gohugo.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gohugo.io&#x2F;</a>). Which, being written in Go is probably much <i>easier</i> than this to compile across different platforms (unless you&#x27;re using a really obscure platform). I can&#x27;t see much reason to use this.
评论 #18994734 未加载
评论 #18994452 未加载
jagger27over 6 years ago
The best static site generator I&#x27;ve used is Hugo. Still haven&#x27;t been tempted to fork it or modify any of the generating code. It has just enough helper functions to be useful. The theme system is really lovely too, with a ton of simple templates to work from. I don&#x27;t use the built in web server, but it&#x27;s great for local testing.<p>I highly recommend it for any text heavy sites.
equaluniqueover 6 years ago
Cool!<p>OpenBSD enthusiast Roman Zolotarev has ssg4, a static site generator that&#x27;s a simple shell script.
jshawlover 6 years ago
If you really want boring you should save users the trouble of compiling c code.