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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: First Crack, a simple static blog engine in Python

44 点作者 zacssite将近 6 年前

8 条评论

turtleish将近 6 年前
&gt; Because I started this project in 2011, though, with Python 2, you will need Python 2.* to use my blogging engine. I plan to port it to Python 3 soon. Use with versions other than 2.* at your own risk.<p>7 months until PY2 goes EOL...
AndrewStephens将近 6 年前
Everyone and their dog has written a static site generator - and that is good thing.<p>Blogs are a personal creation and there is something very satisfying about publishing your own text using your own tools.<p>Things I particularly like about this project:<p>* No dependencies<p>* the generated pages are clean<p>* good documentation and usability<p>Since it is tradition at this point, here is my static site generator: <a href="https:&#x2F;&#x2F;github.com&#x2F;andrewstephens75&#x2F;gensite" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;andrewstephens75&#x2F;gensite</a><p>And an example page: <a href="https:&#x2F;&#x2F;sheep.horse&#x2F;2017&#x2F;10&#x2F;how_you_are_reading_this_page.html" rel="nofollow">https:&#x2F;&#x2F;sheep.horse&#x2F;2017&#x2F;10&#x2F;how_you_are_reading_this_page.ht...</a>
fredley将近 6 年前
All you need to do to make this work with Python 3 is change your print statements (add parentheses) and change raw_input to input, as far as I can tell running it in python 3 locally. It seems to work perfectly with these ~20 seconds of changes.
评论 #20103107 未加载
quickthrower2将近 6 年前
My favourite static blog engine is a NIH fueled mix of NodeJS, Handlebars, fs-extra and some glue code. It takes about 10 minutes to knock one up and then you are blessed you can extend it using JS not whatever DSLs are thrown are you by the static site generator. There is a lot more help out there for JS problems than Hugo problems.
jjjbokma将近 6 年前
I wrote a static microblog engine in Python as well (3.7+). There is also a Perl version: <a href="https:&#x2F;&#x2F;github.com&#x2F;john-bokma&#x2F;tumblelog" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;john-bokma&#x2F;tumblelog</a><p>Demo site: <a href="http:&#x2F;&#x2F;plurrrr.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;plurrrr.com&#x2F;</a>
gitgud将近 6 年前
&gt; First Crack does not rely on any third-party tools, code, or frameworks<p>Sorry just a little nitpick: Python <i>is</i> a dependency that&#x27;s not guaranteed to be on someone&#x27;s system, probably should mention this somewhere
cardamomo将近 6 年前
&gt; First Crack does not rely on any third-party tools, code, or frameworks.<p>That&#x27;s music to my ears!
ColanR将近 6 年前
No example images or demo site?
评论 #20100924 未加载