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: A static site generator that prettifies the output HTML

71 pointsby jdeanwallaceabout 1 year ago
I recently stripped out Django from my personal site and converted it to a static site, using `staticjinja`.<p>I found myself writing a lot of custom code to get my site going because I wanted to use Jinja templating inside Markdown.<p>Once I was done, I decided to strip out `staticjinja` in favour of my own site generator.<p>And so Jinjabread was born!

7 comments

rcarmoabout 1 year ago
Very nice. Like my own stuff, you have an index file and dependent media per folder, which is the only real way to scale out beyond a few dozen pages (my site has… a few more - <a href="https:&#x2F;&#x2F;taoofmac.com&#x2F;static&#x2F;graph" rel="nofollow">https:&#x2F;&#x2F;taoofmac.com&#x2F;static&#x2F;graph</a>)<p>One suggestion I’d make is to do two passes—one to index all the inter-page links, another to actually render the templates. I do that (and full text search) with SQLite: <a href="https:&#x2F;&#x2F;github.com&#x2F;rcarmo&#x2F;sushy&#x2F;blob&#x2F;master&#x2F;sushy&#x2F;models.py">https:&#x2F;&#x2F;github.com&#x2F;rcarmo&#x2F;sushy&#x2F;blob&#x2F;master&#x2F;sushy&#x2F;models.py</a>
rigidabout 1 year ago
There&#x27;s a gazillion nice python SSGs but when it comes to advanced stuff like responsive imagrs, i18n or js optimization, you always have to add it yourself.<p>It seems most of these never became fit for use for some bigger website.
评论 #39841362 未加载
Seb-Cabout 1 year ago
That does not sound like a good idea to prettify code where whitespaces are significant and can make or break your layout. How do you deal with it?
fuzztesterabout 1 year ago
&gt;And so Jinjabread was born!<p>Mouth-watering.<p>May we have some garlic butter with that?<p>Upvoted ya for having good <i>taste</i> ;)
Solvencyabout 1 year ago
Can anyone please explain what happened to the idea of making static sites the old fashioned way?<p>Pure HTML, CSS, and vanilla JS. And a few files organized in a few folders. And upload.<p>Why must even a static site in 2024 require Python, libraries, framework dependencies, build steps, etc?
评论 #39841303 未加载
评论 #39841657 未加载
评论 #39840973 未加载
评论 #39841307 未加载
评论 #39841063 未加载
评论 #39843114 未加载
评论 #39840974 未加载
评论 #39841119 未加载
cantSpellSoberabout 1 year ago
&gt; <i>Prettify all generated HTML (because why not?)</i><p>..because it makes the files larger? I see why it&#x27;s useful during dev though. (Great name!)
评论 #39838042 未加载
评论 #39839328 未加载
评论 #39838004 未加载
评论 #39838036 未加载
评论 #39841318 未加载
nsonhaabout 1 year ago
who needs this feature? If there is a need for it this should be done in the browser anyway.