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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Using Jekyll and GitHub Pages for Our Site

79 点作者 AdesR超过 13 年前

7 条评论

LeafStorm超过 13 年前
I have never used Jekyll. I do, however, frequently use nanoc[1] - it takes a bit more effort to set up, but it is <i>far</i> more flexible, because instead of ridiculous configuration files, you are actually writing Ruby code (in a very nice DSL, might I add) that controls how each set of files is compiled.<p>One thing I did with it was create a Web site with recipes on it. The recipe files didn't have any actual content, everything was stored in the metadata. I had the Rules file set up so that they would run the Recipes through a layout that would expand them to HTML (<i>consistently</i>), then <i>that</i> was run through the normal page template.<p>It also used a preprocess rule to generate fresh items "on the fly" that serve as indices for each recipe type. Again, no content - the Rules file is set up so that the artificial items get all their content from a layout before being <i>actually</i> layouted with the site template.<p>[1]: <a href="http://nanoc.stoneship.org/" rel="nofollow">http://nanoc.stoneship.org/</a>
评论 #2993901 未加载
amirhhz超过 13 年前
Ever since I installed Wappalyzer in my browser (detects what frameworks and technologies a website uses) more and more often I come across websites that I am shocked use so many backend and frontend frameworks. I'm shocked because that means they are spending unnecessary amounts of money, time and effort on hosting (e.g. Wordpress hosting), development and maintenance when the entire site would be perfectly well-served (and faster!) with static pages.<p>The problem until recently was that there weren't appropriate tools for the job, but this article should prove that's now changing.
评论 #2993353 未加载
评论 #2993270 未加载
xal超过 13 年前
Powers the Shopify website as well by the way. Jekyll was a good fit since we made Liquid and are therefore really familiar with it.
评论 #2994764 未加载
mhd超过 13 年前
What I always found a bit annoying about jekyll (at least without plugin or forks) is that something like <a href="http://developmentseed.org/blog/2011/" rel="nofollow">http://developmentseed.org/blog/2011/</a> or <a href="http://developmentseed.org/blog/2011/09/" rel="nofollow">http://developmentseed.org/blog/2011/09/</a> doesn't work, i.e. the set of archive pages is pretty limited. You get one big one, and then a simple numeric pagination. I used some perl script ages ago (blosxom?), and it did just that.<p>Still, I guess I can hack that into the code somehow…<p>One "prepackaged" jekyll configuration that looks quite interesting is Octopress: <a href="http://octopress.org/" rel="nofollow">http://octopress.org/</a>
评论 #2992961 未加载
评论 #2992662 未加载
jordanlev超过 13 年前
If you're interesting in this, you should also check out Octopress, which sits on top of Jekyll and provides a nice default theme, handy addons (for google site search, disqus comments, twitter/facebook sharing, etc.), and deployment scripts.<p><a href="http://octopress.org/" rel="nofollow">http://octopress.org/</a>
评论 #2993059 未加载
AdesR超过 13 年前
the maps on the site are designed in [tilemill](<a href="http://tilemill.com/pages/index.html" rel="nofollow">http://tilemill.com/pages/index.html</a>), and served by [tilestream](<a href="http://mapbox.com/#/tilestream" rel="nofollow">http://mapbox.com/#/tilestream</a>), btw.
sramov超过 13 年前
Excellent execution, custom YAML fields allow for a lot of options.<p>I do the same, except I host at NearlyFreeSpeech.NET, which just feels right.