News for hackers. Stuff that matters.
Re:Jekyll Lambda – Minimal Theme for Jekyll by CJefferson on Wednesday November 11, 2015 @04:32PM (#10549449)
While this is slightly off-topic, does anyone have any current opinions on Jekyll / Pelican / Middleman / etc?

In particular websites which are only part blog.

Re:Jekyll Lambda – Minimal Theme for Jekyll by danso on Wednesday November 11, 2015 @04:50PM (#10549589)
Middleman is amazing, I build all of my sites with it...it's a nice mix of Jekyll's ease with the flexibility of being able to write as much templating/backend logic as you need (basically, the ability to use Erb). For any site in which you don't need a database, in which your content can be serialized as several hundred JSON/yaml objects, I think Middleman is fantastic.
Re:Jekyll Lambda – Minimal Theme for Jekyll by astockwell on Wednesday November 11, 2015 @05:52PM (#10549978)
+1, I started with Jekyll for my personal site but quickly switched. Ultimately I found Middleman had much more functionality baked in, especially things like the ability to use a yaml file of projects to drive a portfolio page, or to fetch a series of release URLs from GitHub and include them on a page upon build. Probably all possible with Jekyll, but not as easily at the time. YMMV.
Re:Jekyll Lambda – Minimal Theme for Jekyll by danso on Thursday November 12, 2015 @01:35AM (#10551641)
Jekyll now supports data files that can be used in roughly the same way...so I've actually been able to build decent sites with just Jekyll, when I need to collaborate with someone else, as Jekyll is much more common a platform and has the bonus of being able to "just work" with Github pages if you don't add any plugins.
Re:Jekyll Lambda – Minimal Theme for Jekyll by krick on Wednesday November 11, 2015 @05:27PM (#10549830)
What exactly opinions do you want? I tried all of that stuff except of Middleman and ended up writing my own. Jekyll is way too opinionated, no way to make the website exactly what you want it to be. Hakyll is very configurable, but the very fact that it's written in Haskell and needs to be recompiled after every structural change turned out to be way more annoying than I thought. Pelican would be nice, but the last I checked it was quite unstable and buggy, unlike Jekyll and Hakyll. In the end I thought that writing 200 lines of Python code to do exactly what I want is easier, than to explore what's out there and how to make it to do what I want.
Re:Jekyll Lambda – Minimal Theme for Jekyll by seagreen on Wednesday November 11, 2015 @05:12PM (#10549719)
Hakyll is fantastic -- works great as a blog, but is also very extensible. I used Nanoc before that and it was also excellent.

I don't think you want Pelican or Jekyll in this case. Their emphasis is definitely on blogging and you'll have to fight them some if you move away from that niche.

Re:Jekyll Lambda – Minimal Theme for Jekyll by wuschel on Wednesday November 11, 2015 @06:33PM (#10550184)
Are there any examples of a non-blog use case with Hakyll e.g. a partly static, partly generated website?

How does Hugo compare to Hakyll?

Re:Jekyll Lambda – Minimal Theme for Jekyll by mreid on Wednesday November 11, 2015 @07:57PM (#10550575)
I haven't used Hugo but my entire site is generated with Hakyll: http://mark.reid.name/ . I've found it works well for a mixture of blogging and more static content.
Re:Jekyll Lambda – Minimal Theme for Jekyll by wuschel on Wednesday November 11, 2015 @09:31PM (#10550916)
Thanks for the example. Can you compare Hakyll to other static site generators?
Re:Jekyll Lambda – Minimal Theme for Jekyll by seagreen on Wednesday November 11, 2015 @10:17PM (#10551083)
Hakyll will be very similar to something like Nanoc. The difference will be mainly in the language and ecosystem -- compared to normal languages Haskell is pretty weird.

That said, Haskell is also _incredibly awesome_ and especially well suited to static site generation. Plus Pandoc is possibly the best format conversion tool out there. But I would only use if if you either already know Haskell or are curious and will enjoy playing around and learning new things.

Re:Jekyll Lambda – Minimal Theme for Jekyll by frigg on Wednesday November 11, 2015 @05:43PM (#10549930)
I tried Pelican just to see how they work and what's so special about static site generators. The downside for me was having to go through the process of re-generating the site and committing just so you can fix something as simple as a grammar error or a comma. It gets old fast IMO. The other annoyance was with images included in the post. You have to copy then write the image path because you don't have something like a pop-up box which just selects the image.

So I switched to ghost and I'm fairly happy for now. The downside of this is that I have to pay ~$4 a month for a shared hosting, which is fine by me.

Re:Jekyll Lambda – Minimal Theme for Jekyll by brazzledazzle on Wednesday November 11, 2015 @05:53PM (#10549986)
I've yet to try it but that's the downside that would slightly annoy me. Probably not enough to turn me off of it, but maybe. Would post-commit hooks and some kind of automation make it easier?
Re:Jekyll Lambda – Minimal Theme for Jekyll by Zikes on Wednesday November 11, 2015 @06:05PM (#10550047)
Hugo has an option built-in to watch the directory and rebuild pages automatically. It can also reload the browser automatically using the optional LiveReload plugin: http://gohugo.io/overview/usage/
Re:Jekyll Lambda – Minimal Theme for Jekyll by wuschel on Wednesday November 11, 2015 @06:30PM (#10550174)
Interesting.

In general: What would be the best approach towards having a part of the website static (main part), and only the blog/press part being regenerated?

Does Hugo/Pelican/Jekyll/Hakyll etc handle this kind of functionality?

As an alternative, what would be a good light weight CMS these days (ideally in Python)?

Re:Jekyll Lambda – Minimal Theme for Jekyll by acchan on Wednesday November 11, 2015 @06:38PM (#10550216)
Pelican does too. Just use 'make regenerate' instead of 'make publish': http://docs.getpelican.com/en/3.6.3/publish.html#make
Re:Jekyll Lambda – Minimal Theme for Jekyll by girvo on Wednesday November 11, 2015 @06:44PM (#10550258)
Right, I agree! But that's why Harp is so neat: harpjs.com
Re:Jekyll Lambda – Minimal Theme for Jekyll by Zikes on Wednesday November 11, 2015 @05:34PM (#10549881)
For Go fans, I had a lot of fun playing with Hugo: https://github.com/spf13/hugo
Re:Jekyll Lambda – Minimal Theme for Jekyll by kmfrk on Thursday November 12, 2015 @03:42AM (#10552003)
Jekyll has a huge community, is actively maintained (it being the backbone of GitHub’s blog system) with plenty of plugins, and has pretty decent documentation (that can always be expanded with a pull request).

I find those factors tend to trump smaller shortcomings. There’s always going to be some stuff, but being able to ask a question and get an answer is very important. Take that from someone who did his first static blog in Blogofile …

Windows support has been non-existent, which is obviously huge to some, but Jekyll 3 aims to remedy that. I haven’t played around with Jekyll 3 on Windows, though, so you only have their word for it. Ruby on Windows is already … interesting.

Re:Jekyll Lambda – Minimal Theme for Jekyll by budparr on Wednesday November 11, 2015 @09:53PM (#10551006)
I've used Jekyll (quite a bit), Metalsmith, and Hugo and tested some others. They all fit a particular use-case, like Hugo is incredibly fast, Metalsmith is incredibly flexible (it's something like a Gulp for static sites), and Jekyll is well-rounded, has a large community, and has the most progress with content editors for non-technical users.

I run a site with resources for static site generators, The New Dynamic, and you can find a lot of articles on those and others there: http://www.thenewdynamic.org/

Re:Jekyll Lambda – Minimal Theme for Jekyll by iheart2code on Wednesday November 11, 2015 @06:05PM (#10550044)
I'm using Jekyll for my portfolio, and it is working out quite well. Unfortunately, I can't get paging to work on multiple collections at once. So it would be great for a site that's ONLY a blog or ONLY a portfolio, but I recently added a blog and it seems to be holding me back.

Portfolio: http://www.thejeremywhite.com/

Source: https://github.com/iheart2code/iheart2code.github.io

Re:Jekyll Lambda – Minimal Theme for Jekyll by itake on Wednesday November 11, 2015 @04:39PM (#10549512)
I think they are great, but because statically generated sites can limit growth, just because if you want to add backend features (forms, commenting, etc.), you may have to switch platforms or use third party services.

I host my own blog on Jekyll and that works awesomely well and I have no plans for needing a backend server. If I was a startup and wanted to add small marketing features (email collection, surveys, etc.) then I would consider moving off of it.

Re:Jekyll Lambda – Minimal Theme for Jekyll by spdustin on Wednesday November 11, 2015 @04:53PM (#10549605)
Not related to the original article, but that's an ideal use-case for Amazon Lambda.
Re:Jekyll Lambda – Minimal Theme for Jekyll by sgallant on Wednesday November 11, 2015 @05:59PM (#10550015)
I just set up a Jekyll site on S3 and used formkeep.com for form endpoints. Worked great (but costs $7/month).
Re:Jekyll Lambda – Minimal Theme for Jekyll by icebraining on Wednesday November 11, 2015 @06:59PM (#10550335)
It's amazing how companies can charge almost the same for what's essentially an HTTP handler that saves a few POSTed field as Netflix charges for streaming unlimited films and series.

And yet, I can totally see why it makes sense to pay, since handling yet another service that you must keep up is just annoying and time-consuming.

Re:Jekyll Lambda – Minimal Theme for Jekyll by MarioSpeedwagon on Wednesday November 11, 2015 @07:33PM (#10550475)
If you want to try a great free one that's all SSL, Hook Forms (.com) is in beta.

I don't mean to pimp, but we really would love more testing and would send you an invitation right away. Plus, the free thing.

Re:Jekyll Lambda – Minimal Theme for Jekyll by budparr on Wednesday November 11, 2015 @09:58PM (#10551027)
Hook Forms looks good. I'll post it to our tools section at The New Dynamic. Will it always be free, at least for some functionality?
Re:Jekyll Lambda – Minimal Theme for Jekyll by hamxiaoz on Wednesday November 11, 2015 @06:26PM (#10550152)
They can all be accomplished by utilizing MailChimp: - Emails signups - Contact form
Re:Jekyll Lambda – Minimal Theme for Jekyll by hardwaresofton on Wednesday November 11, 2015 @05:31PM (#10549860)
I personally like Harp for it's simplicity (which mostly comes from NPM and node magic):

http://harpjs.com/

http://harpjs.com/docs/quick-start

Re:Jekyll Lambda – Minimal Theme for Jekyll by fustkilas on Wednesday November 11, 2015 @05:47PM (#10549956)
Another happy Harp user here. The team behind Harp has also created Surge (http://surge.sh/) which is simple & well thought out.

I find that Harp and Surge get in the way the least, thanks to "convention over configuration". Just give me my Jade & Stylus, thank you very much.

I'd be interested in hearing how others use Harp with current tooling - React / CSS modules / JSPM anyone?

Re:Jekyll Lambda – Minimal Theme for Jekyll by 0xCMP on Wednesday November 11, 2015 @06:26PM (#10550150)
I use jekyll but since I've been learning Go I have wanted to use Hugo which seems to have a lot of nice features. Middleman seems to have the most features though.

Still, it's nice that jekyll doesn't require much work to deploy to github.

Re:Jekyll Lambda – Minimal Theme for Jekyll by mbrock on Wednesday November 11, 2015 @05:33PM (#10549866)
make and bash go a long way!