News for hackers. Stuff that matters.
Re:Jekyll 2.0.0 is released by bradgessler on Tuesday May 06, 2014 @10:38PM (#7708340)
Congrats on the 2.0 release!

I highly recommend taking a look at http://middlemanapp.com if you're considering Jekyll. I gave a talk at RailsConf (http://bradgessler.com/talks/middleman-frontend/) about static website generators and found that Middleman handles everything Jekyll does in a much more modular, more "railsy" way by using tilt, sprockets, and all that good stuff.

Re:Jekyll 2.0.0 is released by themodelplumber on Wednesday May 07, 2014 @12:09AM (#7708565)
It seems like there is a gigantic living, breathing ecosystem made of these SSGs now, with Jekyll being the favorite for people who are inclined to seek out the one that has the most stuff written about it, or the largest community. Can't say I disagree with that method of selecting software, either.

When I found out about Hugo yesterday, after comparing a list of others which must have been a few weeks too old to include the latest hotness, I almost collapsed at my keyboard. Developed in Go, distributed as a binary. Hokay. So now you can pretty much narrow your choice down to the language, then the software architecture, then the amount of activity on Github, then the license, then the corresponding "ideal website as created by SSG package X" output, then the attitudes of the authors on your favorite social networks, and finally you can probably look up the authors' girlfriends too (don't do that) and compare by girlfriend.

On top of that, the static output is dropped into gigantic pools of resources that can scale to an unimaginable degree, can probably handle hundreds of DDOSes at a time, and they probably all validate without so much as a yellow flag. Oh and if you want you can use this tool to write an API, or if you want you can just not build a site with it, because it includes a game of Nibbles which is also static in some funny way, or whatever.

It's amazing and absolutely ridiculous at the same time. In some ways it's an almost pornographic exploitation of process that cares approximately 0% about content. But it's also a huge display of generosity and demonstrates some very serious attention to craft.

Re:Jekyll 2.0.0 is released by pron on Wednesday May 07, 2014 @12:12PM (#7710958)
Yep. This is a good blog post by Development Seed about their static-only website approach: http://developmentseed.org/blog/2012/07/27/build-cms-free-we...
Re:Jekyll 2.0.0 is released by sgdesign on Wednesday May 07, 2014 @12:18AM (#7708589)
Agreed. I'm using Middleman for all my static sites and blogs now.

In fact I wrote quite a bit about various Middleman tips and tricks on the Discover Meteor blog:

https://www.discovermeteor.com/blog/three-more-ways-to-make-...

Re:Jekyll 2.0.0 is released by cseelus on Wednesday May 07, 2014 @11:53AM (#7710841)
As a rails dev i can confirm this.

Jekyll always felt a little bit cumbersome when you are used to all the Rails goodies like sprockets.

Since I discovered the middleman-deploy[1] gem, I also use it for my Github Pages, without any additional effort.

1) https://github.com/tvaughan/middleman-deploy (or have a look at https://github.com/neo/middleman-gh-pages as an alternative)

Re:Jekyll 2.0.0 is released by cmer on Tuesday May 06, 2014 @11:41PM (#7708497)
I second this. I recently discovered Middleman and the experience is very familiar to Rails, in a good way. There are also many amazing plugins, such as one to automatically deploy to S3.
Re:Jekyll 2.0.0 is released by e12e on Friday May 09, 2014 @05:06AM (#7720008)
The sentiment (that'd you'd want to use something that's "railsy" for making static pages) sounds completely batshit crazy to me -- but given the number of upvotes and (sane-sounding) supporting comments, I suppose there might be something to it. I'll have a look, even if I'm more in the camp that thinks "how does any of this improve on m4 anyway"...

I suppose it really does demonstrate that rails has great mind-share and a lot of developers still using it (and enjoying using it) -- which is great. Still a little surprised there's so much apparent overlap between people that thing that "hey rails is a great way to make web-apps", and people that thing "static html is great for content". Perhaps an indication of how "ajax-driven" web development have forced everyone to look at webapps as api+rendering -- and how (apparently) well rails have been adopted to that design (because, I'm guessing, everyone's been forced to break their architecture into a view/template layer that's driven by data --- much like a well-structured coldfusion, asp or php app -- but with ajax).

Re:Jekyll 2.0.0 is released by keehun on Tuesday May 06, 2014 @10:52PM (#7708371)
It looks great, and a large list of websites to boot! Wish Github supported more than Jekyll on Pages.
Re:Jekyll 2.0.0 is released by PStamatiou on Tuesday May 06, 2014 @11:58PM (#7708543)
This is amazing news. I currently have to run 2 Jekyll installs to do what I want with custom post types (before this I had a fork to add a different type and that was getting hard to keep updated): I have one main Jekyll install for my blog, and inside of that inside /photos I have another Jekyll for my photo blog so I can do things like this:

http://paulstamatiou.com/photos/japan/two-weeks-in-japan/

<3 open source! All hosted on S3/CF with https://github.com/laurilehmijoki/s3_website

Re:Jekyll 2.0.0 is released by lovamova on Thursday May 08, 2014 @05:05AM (#7714475)
Spammy in action again!

Exactly the same message on DN: https://news.layervault.com/comments/62311

Re:Jekyll 2.0.0 is released by vibragiel on Wednesday May 07, 2014 @04:31AM (#7709169)
Would you consider open sourcing your photo blog site? I like it. A lot.
Re:Jekyll 2.0.0 is released by imc on Wednesday May 07, 2014 @06:42AM (#7709469)
+1 to open-sourcing your photo blog - it's really impressive.
Re:Jekyll 2.0.0 is released by atonse on Wednesday May 07, 2014 @11:23AM (#7710668)
Truly amazing photos. Thanks for sharing this!

+1 open sourcing your static site, it's a great example of what's possible with SSGs.

Re:Jekyll 2.0.0 is released by davidcollantes on Wednesday May 07, 2014 @11:57AM (#7710879)
I will add my +1 on open sourcing it as well. Would love to learn how you did things!
Re:Jekyll 2.0.0 is released by liquidvisual on Wednesday May 07, 2014 @10:52AM (#7710465)
+1 would love to see it on Github just to learn from it!
Re:Jekyll 2.0.0 is released by toomuchtodo on Wednesday May 07, 2014 @03:26PM (#7712166)
+1 on open sourcing your photo blog :)
Re:Jekyll 2.0.0 is released by danso on Tuesday May 06, 2014 @10:20PM (#7708297)
Congrats! Native support of Sass and CoffeeScript seem trivial, because of the various hacks and plugins out there...but damn it was hard, even knowing the hacks, to get a Jekyll project up and running if I hadn't been recently re-acquainted to its quirks. It'll also be nice to have Github Pages (I'm assuming) support the baking out of sass files...it feels so wrong to go back to plain CSS.

The #1 feature, collections, is also huge...Lately I've been using Middleman, because there are a lot of small data-apps that don't require Sinatra/Rails but that Jekyll, being blog focused, is not well-equipped to handle...Middleman fits that niche perfectly...almost too well, as I often get to the point where I think, "Why didn't I just make this a Sinatra app?" But I'm glad to see some more flexibility with Jekyll...even in the previous version, you could get pretty far with the hardcoded blogging conventions.

Mainly, I'm excited to Github Pages become even more easy-to-deploy and configure, particularly for documentation. Congrats and thanks again!

Re:Jekyll 2.0.0 is released by samstokes on Tuesday May 06, 2014 @10:09PM (#7708258)
Looks awesome. I wonder if Octopress is planning to support this new version? Some of the new features (e.g. support for sass) seem to overlap with Octopress.
Re:Jekyll 2.0.0 is released by morrad on Wednesday May 07, 2014 @01:31PM (#7711525)
The shepherd of Jekyll [1] is also one of the lead developers of Octopress.

[1]: https://github.com/parkr

Re:Jekyll 2.0.0 is released by fdsary on Tuesday May 06, 2014 @10:49PM (#7708365)
So I'm trying to check this out, but my ruby gems mirror seems to not want to. I get this error:

`ERROR: Could not find a valid gem 'jekyll' (>= 0), here is why: Unable to download data from https://rubygems.org/ - bad response Gateway Time-out 504 (https://tokyo-m.rubygems.org/quick/Marshal.4.8/jekyll-2.0.1....

Is there any way to specify other mirrors, and is there other mirrors than the Tokyo one that would work better?

Re:Jekyll 2.0.0 is released by veidr on Wednesday May 07, 2014 @02:28AM (#7708879)
FWIW I too see that error (I am in Tokyo, too).

Assuming you are using Bundler, and not trying to install the jekyll gem globally, you can manually specify a server in the Gemfile.

In an empty directory, I created a Gemfile with only these contents:

    source 'http://production.s3.rubygems.org'
    
    gem 'jekyll', '~> 2.0'
Then on the command line:

    [mason@IT-PC-MACPRO-002 jekyll-2-fuckery]$ bundle install --path vendor/bundle
    Fetching source index from http://production.s3.rubygems.org/
    Resolving dependencies.................
    Using blankslate 2.1.2.4
    <bunch of lines deleted...>
    Your bundle is complete!
    It was installed into ./vendor/bundle
    [mason@IT-PC-MACPRO-002 jekyll-2-fuckery]$ bundle exec jekyll --version
    jekyll 2.0.2
    [mason@IT-PC-MACPRO-002 jekyll-2-fuckery]$ 
That worked.

(EDIT: Updated with server that worked.)

Re:Jekyll 2.0.0 is released by nickstinemates on Tuesday May 06, 2014 @11:43PM (#7708507)
Make sure you have an updated version of openssl.
Re:Jekyll 2.0.0 is released by fdsary on Tuesday May 06, 2014 @11:47PM (#7708513)
I've got the `openssl-1.0.1g` package from `brew`
Re:Jekyll 2.0.0 is released by Kronopath on Tuesday May 06, 2014 @11:51PM (#7708528)
Good to see them supporting Kramdown as the default Markdown converter. When building up my personal website using Jekyll, I very quickly switched to Kramdown from the default Redcarpet—it had a lot better handling of typographic characters like smart quotes and dashes, and played much nicer with Mathjax.

Collections also look like they will really help with creating websites that deviate from the exact "blog" format that Jekyll is optimized for.

Good work from the team.

Re:Jekyll 2.0.0 is released by tdicola on Tuesday May 06, 2014 @09:59PM (#7708227)
Nice! Anyone know if github pages support Jekyll 2.0 yet?
Re:Jekyll 2.0.0 is released by parkr on Tuesday May 06, 2014 @10:00PM (#7708233)
Re:Jekyll 2.0.0 is released by keehun on Tuesday May 06, 2014 @10:01PM (#7708240)
Re:Jekyll 2.0.0 is released by taigeair on Wednesday May 07, 2014 @11:40AM (#7710767)
I use Jekyll and am having an issue with it when I use feedburner. It recommends using {{site.url}} in the markdown and templates.

http://jekyllrb.com/docs/posts/

So, for example, I have {{ site.url}}/radio-surfing

On my site it shows http://www.taigeair.com/radio-surfing/ but on feedburner it becomes http://feeds.feedburner.com/radio-surfing/ in the feed.

Example http://feeds.feedburner.com/taigeair

Does anyone else have this issue? Any suggestions?

Re:Jekyll 2.0.0 is released by dkuntz2 on Wednesday May 07, 2014 @02:22PM (#7711839)
Is your `site.url` set to `/` ?
Re:Jekyll 2.0.0 is released by taigeair on Wednesday May 07, 2014 @03:10PM (#7712101)
it would be my domain

taigeair.com

Re:Jekyll 2.0.0 is released by dkuntz2 on Wednesday May 07, 2014 @03:24PM (#7712155)
Looking at your feed, it appears you're not using `site.url` in each post's `<link>` field. The links are all `/url`, not `taigeair.com/url`.

I'm not certain, but your `feed.xml` file probably has `<link>{{ post.url }}</link>`, which should probably be `<link>{{ site.url }}{{ post.url }}</link>`

Re:Jekyll 2.0.0 is released by taigeair on Thursday May 08, 2014 @12:22PM (#7716093)
Thanks for your help. My feed xml has <link>{{ site.url }}{{ post.url }}</link> so I'm not sure what the issue is.

--- layout: none --- <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ site.name | xml_escape }}</title> <description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description> <link>{{ site.url }}</link> <atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" /> {% for post in site.posts %} <item> <title>{{ post.title | xml_escape }}</title> <description>{{ post.content | xml_escape }}</description> <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate> <link>{{ site.url }}{{ post.url }}</link> <guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid> </item> {% endfor %} </channel> </rss>

Re:Jekyll 2.0.0 is released by taigeair on Thursday May 08, 2014 @12:30PM (#7716140)
Okay I fixed it.

I needed to add this line to the _config.yml

url: http://www.taigeair.com

I just checked the feed and it worked!! Thanks for helping.

Re:Jekyll 2.0.0 is released by taigeair on Thursday May 08, 2014 @12:22PM (#7716101)
Re:Jekyll 2.0.0 is released by canadev on Wednesday May 07, 2014 @06:12AM (#7709403)
Is there any sort of interactive static site generator, for people who are not very computer literate to use?

(I write code, so it's not for me, but I am wondering if I could say, setup a template for a friend, and have them fill in the content of the pages.)

Re:Jekyll 2.0.0 is released by snide on Wednesday May 07, 2014 @09:42AM (#7710070)
Funny you should ask. I'm building one right now. It'll be available next month. Basically it's what you'd expect from a SSG from a code standpoint, but deploys with a live CMS so that non-literate users can edit it.

Details here. http://www.webhook.com/

Re:Jekyll 2.0.0 is released by budparr on Wednesday May 07, 2014 @03:04PM (#7712066)
Looking forward to seeing webhook in action (I backed it). Will there be an open source component (perhaps the way Harp works), or entirely your service? Either way, it looks fantastic!
Re:Jekyll 2.0.0 is released by crucialfelix on Wednesday May 07, 2014 @11:10AM (#7710574)
yes, this is a needed. I've wanted to point Normal People at a static site generator many times but there aren't any.
Re:Jekyll 2.0.0 is released by gerbal on Wednesday May 07, 2014 @07:33AM (#7709593)
Docpad apparently has a wysiwyg interface.

Almost very moderately popular ssg has some sort of cms interface plugin.

Re:Jekyll 2.0.0 is released by zrail on Wednesday May 07, 2014 @07:08AM (#7709531)
Wordpress + your choice of page cache plugin. It's effectively the same thing.
Re:Jekyll 2.0.0 is released by budparr on Wednesday May 07, 2014 @03:12PM (#7712107)
Re:Jekyll 2.0.0 is released by mrmondo on Tuesday May 06, 2014 @11:50PM (#7708525)
Shout out to parkr, albertogg & troyswanson for the fastest public bug-fix turn around:

https://github.com/jekyll/jekyll/issues/2317

Re:Jekyll 2.0.0 is released by tragic on Wednesday May 07, 2014 @04:54AM (#7709231)
Looking at the changes, it's like every small niggly pain-point I've had with my particular Jekyll use cases (faffing around to get sass watch going in a separate shell, using 'posts' for things that are not in any sense posts) have been addressed. A version bump just for me!

I am a happy bunny.

Congratulations and thanks to the Jekyll folks.

Re:Jekyll 2.0.0 is released by liquidvisual on Wednesday May 07, 2014 @11:04AM (#7710541)
I'm using the starter template ($ jekyll new project) and pretty URLs are enabled by default. The "about" page works but the "welcome to Jekyll" link goes to a .html appended url.

Anyone else finding this?

Re:Jekyll 2.0.0 is released by ericHosick on Tuesday May 06, 2014 @11:21PM (#7708447)
I really like Jekyll and use it for both my website and blog. It really is a great product that is easy to use. Thanks!
Re:Jekyll 2.0.0 is released by 100k on Tuesday May 06, 2014 @10:18PM (#7708293)
This looks like a solid release. Collections will make Jekyll a much better choice for a wide range of sites.
Re:Jekyll 2.0.0 is released by benatkin on Tuesday May 06, 2014 @11:39PM (#7708490)
It's great to see open source projects that are used by many people evolve.
Re:Jekyll 2.0.0 is released by gpxl on Tuesday May 06, 2014 @10:37PM (#7708337)
Very cool! Thanks to the whole team for their hard work.
Re:Jekyll 2.0.0 is released by drchiu on Wednesday May 07, 2014 @01:51AM (#7708794)
This is fantastic. Thank you Jekyll team!
Re:Jekyll 2.0.0 is released by nilved on Tuesday May 06, 2014 @11:00PM (#7708392)
Quite disappointed the developers have decided to stick with Liquid templates. With such a handicapped and useless template language, jekyll is a non-starter for any website more complex than something you could trivially write yourself.
Re:Jekyll 2.0.0 is released by parkr on Tuesday May 06, 2014 @11:29PM (#7708468)
For security reasons, we have no choice. It's specifically designed not to allow execution of arbitrary Ruby code. GitHub wouldn't run Pages if Jekyll didn't have this guarantee.
Re:Jekyll 2.0.0 is released by wasd on Thursday May 08, 2014 @04:21AM (#7714383)
I don't use jekyll and have a fairly limited knowledge of pages but doesn't jekyll output static html? Even if you used a dynamic language to create the project, wouldn't it not matter because the end result will be static?
Re:Jekyll 2.0.0 is released by nilved on Monday May 12, 2014 @10:00AM (#7732687)
You'd be able to run arbitrary Ruby code during the compilation of your site. GitHub uses Liquid templates as a pseudo-sandbox: it's deliberately a weak system to prevent abuse. But it's lazy, because there are many other solutions that don't take away from user experience.
Re:Jekyll 2.0.0 is released by benatkin on Tuesday May 06, 2014 @11:41PM (#7708500)
They could probably use Docker and not allow network access and limit the resources (including time) to do a build. I don't know if their business model would support it but it's technically possible.
Re:Jekyll 2.0.0 is released by benatkin on Tuesday May 06, 2014 @11:42PM (#7708504)
With Jekyll and GitHub pages people don't have to run any code on their own computer systems. Combined with GitHub for mac and windows, this counts for something in my book.