TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Saait: a boring HTML page generator

35 点作者 weeber超过 6 年前

5 条评论

sephoric超过 6 年前
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 未加载
nicoburns超过 6 年前
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 未加载
jagger27超过 6 年前
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.
equalunique超过 6 年前
Cool!<p>OpenBSD enthusiast Roman Zolotarev has ssg4, a static site generator that&#x27;s a simple shell script.
jshawl超过 6 年前
If you really want boring you should save users the trouble of compiling c code.