Live data from Hacker News

Static Website Generators

netlify.com

161–170 of 241 posts

Re: Static Website Generators

#161
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?

Yeah, but you can easily copy-paste the generated html into a file. Just append '?export' to the URL. I definitely would use it in that way.

Re: Static Website Generators

#163
"These days, speed and security is the name of the game." And it´s no problem to achieve both with WordPress. Maybe my mileage varies enormously from everybody else, but I am maintaining about 40 WordPress instances.

We have tools to manage updates remotely, make fully automated daily backups, all sites are rated with 85 or more points on Google Page Speed Insights (YSlow and Pingdom Tools don´t rate bad either), we didn´t have any breaches or hacks in the last two years (been in the company for that long) and our clients can easily manage their sites with the built-in tools from WordPress. We have locked the sites down, eliminating attack vectors as far as we can. All sites are using caching tools or even full page caching to improve the speed. No complains and complications at all. Oh, and we have comments and user registrations and more...

It seems most people just can´t handle WordPress the right way. It´s complex software and you have to know (and learn) what you are doing.

Installing the first plugin you stumble upon, ideally from a shady developer who sells it to a malware distributor 2 months later, is a pretty fine way to run you into "WordPress is slow and insecure". Free themes, always install several at once , you never know when you need one, are another great way, too.

But yeah, just throw some fancy JS framework and Markdown at the problem and then start to wonder how you could possibly get some commenting system up and running.

WordPress is quite fine software. For sure, it has flaws and some of them get fixed slower than you would wish, but it´s not bad in the end, if you know what you are doing. Finding people who know what they are doing is probably hard, but that´s the same for everything.

Re: Static Website Generators

#164

The main question for me is comments. I don't want to use something like Disqus, and to require something like Discourse would cancel the whole point of having a static site generator that I can host on Github Pages or Gitlab pages. Ideally, what I would like to do is to have an hackernews post automatically generated for each post, and to redirect people to the HN post if they want to comment, but I am not sure that…

Would putting together a comment form with something like https://staticman.net suit you better?

Re: Static Website Generators

#165
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.

Personally, the biggest issues is the CMS backend part of the process. I'm fine writing content for an SSG, but the marketing department is not. What I really want is a fast, open, and simple CMS BE that has a publishing workflow where the output is a static site. I've yet to fine the perfect candidate. The ones that are close are SaaS platforms and that is unfortunately unacceptable. I'm perfectly ok paying for soft…

Totally feel this pain too. A tool like prose.io can help with this a bit, but it's probably still not friendly enough for many non-tech folk.

Re: Static Website Generators

#166

"These days, speed and security is the name of the game." And it´s no problem to achieve both with WordPress. Maybe my mileage varies enormously from everybody else, but I am maintaining about 40 WordPress instances. We have tools to manage updates remotely, make fully automated daily backups, all sites are rated with 85 or more points on Google Page Speed Insights (YSlow and Pingdom Tools don´t rate bad either), we…

I don't disagree that wordpress is fine, but claiming it's easy to manage after saying you have a team to manage yours and have setup a load of software to handle its complexity for you is odd. And then you say "most people just can´t handle WordPress the right way", which is basically another way of saying "it's not easy".

And 85 points on Google page speed insights or yslow are generally useless metrics. They give as much weight to complaining about a 5kb image not being compressed properly as not having a cdn. It's automated dumb, they're stupid tools with quite often stupid rules. Like I just checked a site I'm responsible for and lost points for not compressing a js file that would save 524B. Yes, that's bytes.

That's not contributing to site slowness at all. And yet at no point did it say "hmm, you've got rather a lot of poorly optimized js there".

Re: Static Website Generators

#167
post #12

I use Hugo for several websites and I enjoy it a lot. One favorite part is the ability to create content of different types.

I also just started using and am really liking it so far. Relatively easy to set up, nice modern themes, and as others have said, the live reload and fast generation are awesome. My first post[0] explains how I use it with GitHub Pages to track commits and host.

[0] http://www.getup8.com/post/blogging-in-hugo/

Re: Static Website Generators

#169

Earlier quoted context omitted.

Personally, the biggest issues is the CMS backend part of the process. I'm fine writing content for an SSG, but the marketing department is not. What I really want is a fast, open, and simple CMS BE that has a publishing workflow where the output is a static site. I've yet to fine the perfect candidate. The ones that are close are SaaS platforms and that is unfortunately unacceptable. I'm perfectly ok paying for soft…

There are a number Content-as-a-Service offerings that can be used with static site generators. (Though not usually with GitHub's built-in Jekyll support as it doesn't allow for plugins) Examples: Contentful, Prismic.io, Built.io, CloudCMS Full disclosure: I work for Contentful

Yeah, I love the idea of Contentful, I just cannot use it unfortunately. If Contentful was available as a purchase option for self-hosting, then I'd be all over it. But it is exactly what I need.

Re: Static Website Generators

#170
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.

FWIW, it's always possible to stand up a dynamic site, crawl it with `wget` in mirror mode, and get a static website as its output.

So long as your URLs are relative, it should work a treat with any CMS.

Post reply on HN