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.

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

44 pointsby zacssitealmost 6 years ago

8 comments

turtleishalmost 6 years ago
&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...
AndrewStephensalmost 6 years ago
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>
fredleyalmost 6 years ago
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 未加载
quickthrower2almost 6 years ago
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.
jjjbokmaalmost 6 years ago
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>
gitgudalmost 6 years ago
&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
cardamomoalmost 6 years ago
&gt; First Crack does not rely on any third-party tools, code, or frameworks.<p>That&#x27;s music to my ears!
ColanRalmost 6 years ago
No example images or demo site?
评论 #20100924 未加载