Live data from Hacker News

Static Website Generators

netlify.com

91–100 of 241 posts

Re: Static Website Generators

#91
post #73

I crave simplicity in my life right now and am using markdeep: https://casual-effects.com/markdeep/ I write my documents in markdown and add this tag at the end of my document I "publish it" by copying it to my server and renaming it .html * note: To get started, here is the suggested starter document: https://casual-effects.com/markdeep/starter.md.html

That's impressive! It even has math support! I do wonder about generating the diagrams at every page load. Seems like markdeep might as well have been a static generator?

Re: Static Website Generators

#93
The main problem for me is that the absolute majority of them target blogs and if you try to adapt them for a more complicated website you gonna dive very deep inside the code or continue constant search. Now I look at hugo as it seems to be a more general-purpose tool that allows to play with structure and content types.

Re: Static Website Generators

#94
post #88

Have really wanted to look at making WP into a static site generator. Have too many clients using WP that could be using it as a static site but won't move away from it... So the admin backend / familiar publishing interface but generating it out to something that could be dumped into S3z Some people have done variations of it but not well or easy. Is easy enough to trap events that should trigger page regeneration.…

That is a great idea for a plugin.

Re: Static Website Generators

#95
post #46

I just use emacs + org mode -> org-publish to generate my site [1] from org-mode with some customizations; it's been the most flexible and fun way to build a site I've had across all my attempts so far, particularly given that I can go meta and also publish the htmlized raw org files at the same time [2]. [1] Publishing config: http://explog.in/config.html [2] Org Source: http://explog.in/config.org.html

I'm a vim user, but org mode is one of the things that I really like the sound of from emacs.

For vim, I use vimwiki[0] in (github flavour) markdown[1] mode, and also publish the entire site to HTML. I really just use it for notes, rather than an entire website, but still, one could.

[0] https://github.com/vimwiki/vimwiki/ [1] https://github.com/patrickdavey/vimwiki_markdown

Re: Static Website Generators

#96
post #73

I crave simplicity in my life right now and am using markdeep: https://casual-effects.com/markdeep/ I write my documents in markdown and add this tag at the end of my document I "publish it" by copying it to my server and renaming it .html * note: To get started, here is the suggested starter document: https://casual-effects.com/markdeep/starter.md.html

I'm not sure if this counts as a "static website", since the page is not delivered exactly as stored. It requires JavaScript to actually renders the page, which seems like an overkill.

Re: Static Website Generators

#97
post #93

The main problem for me is that the absolute majority of them target blogs and if you try to adapt them for a more complicated website you gonna dive very deep inside the code or continue constant search. Now I look at hugo as it seems to be a more general-purpose tool that allows to play with structure and content types.

I found Harp.js pretty good for a general purpose static site gen. It's basically just a nice pre-configured jade/ejs/sass/less/coffeescript/browserify package. As long as you follow the 'rules' in terms of project structure, it just works as both a server and a static renderer for the above.

It can be as complex or simple as you like - you could use it for a blog even, you'd just need to write some of the logic yourself in your templates.

I have used it personally for simple 2-3 page sites, where all I want to do is use some simple templates, compile some sass and bundle my scripts, without having to faff with config and build pipelines.

Re: Static Website Generators

#98
post #88

Have really wanted to look at making WP into a static site generator. Have too many clients using WP that could be using it as a static site but won't move away from it... So the admin backend / familiar publishing interface but generating it out to something that could be dumped into S3z Some people have done variations of it but not well or easy. Is easy enough to trap events that should trigger page regeneration.…

Sandstorm lets you generate static sites with WordPress: https://apps.sandstorm.io/app/aax9j672p6z8n7nyupzvj2nmumeqd4...

It's a one click install and has additional security / isolation benefits provided by Sandstorm. There are currently a few limitations (e.g. plugin installation requires manual uploading of files).

Re: Static Website Generators

#99
post #96
post #73

I crave simplicity in my life right now and am using markdeep: https://casual-effects.com/markdeep/ I write my documents in markdown and add this tag at the end of my document I "publish it" by copying it to my server and renaming it .html * note: To get started, here is the suggested starter document: https://casual-effects.com/markdeep/starter.md.html

I'm not sure if this counts as a "static website", since the page is not delivered exactly as stored . It requires JavaScript to actually renders the page, which seems like an overkill.

That's just client side templating. Which has the same problem they all do of being greeted with a white page until ALL the content is ready.

If someone is prepared to accept this it's not that hard to accept generating the html page yourself and uploading that.

Re: Static Website Generators

#100
post #66

For my website I have a custom python script, and I use RestructuredText for markup. If I started now, I would replace the script with a set of Makefiles... or better use any existing generator.

Hugo supports rst, for what it's worth. There's still time to make the jump :)

Thanks, I've never heard about Hugo, I've seen Sphinx mentioned by mixmastamyk. But... I wish I had enough spare time to do migration. My TODO list is getting longer and longer. :)
Post reply on HN