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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Bash Script to generate static responsive image web galleries

34 点作者 Cyclenerd超过 8 年前

4 条评论

eveningcoffee超过 8 年前
You can improve it by separating design into separate files (say header, footer, etc). Doing things from shell is not very much different from doing things from browser.<p>You can use very simple template language with sed or awk (just replace keywords with actual values for example).<p>Alternative: just rewrite it to command some template engine (no, I do not have any recommendations).<p>Edit: Positive side is that it is a single file, so I can see your point. But as the projects as multiple files anyway, it is perhaps still worth a consideration.
评论 #12888836 未加载
strebler超过 8 年前
I love this, I have been (passively) wanting to find something like this for ages (i.e. bash script, with minimal deps, to generate a nice gallery in HTML). Thank you!<p>One idea &#x2F; suggestion I have would be to use Isotope for layout: <a href="http:&#x2F;&#x2F;isotope.metafizzy.co&#x2F;" rel="nofollow">http:&#x2F;&#x2F;isotope.metafizzy.co&#x2F;</a> Then you&#x27;d basically be able to generate a mini Pinterest...
评论 #12888120 未加载
Cyclenerd超过 8 年前
I have built a small Bash Script to generate static web galleries. Feedback and pull request welcome.
评论 #12887721 未加载
评论 #12888097 未加载
detaro超过 8 年前
With projects like this, I&#x27;d love to see a demo site instead of just a screenshot. Since it&#x27;s static you could just throw it up on GitHub Pages.
评论 #12891466 未加载