<Evolution>
okay, so using the sitemap logic, is it possible to get a list of 'is_hidden' items for a robots.txt to disallow?
<Evolution>
I can't seem to figure out how I'd accomplish this. sitemap lets me do -> <%= xml_sitemap :items => @items.reject{ |i| i[:is_hidden] || i.binary? } %>
<Evolution>
so in theory I should be able to pull some of the same info for robots, right?
<darix>
Evolution: just dont publish hidden items
<darix>
?
<Evolution>
right. I guess I was hoping to make it a bit more dynamic.
<darix>
evil! on purpose breaking my rules file!:p
<ddfreyne>
Well... you shouldn't have used it in the first place ;)
<ddfreyne>
Maybe I'll just emit a warning.
<stbuehler>
you shouldn't have allowed it in the first place :P
<ddfreyne>
Myeah, and #attributes is even public. Ugh
<ddfreyne>
I guess I'll just have to stick to emitting a warning
<Evolution>
ddfreyne: could you elaborate a bit on what you're suggesting?
<Evolution>
for 'just use [] straight away'
<Evolution>
pretend I went to public school and have a terrible grasp of ruby.
<darix>
Evolution: instead of e.attributes[:is_hidden]
<darix>
Evolution: use e[:is_hidden]
<darix>
and public school is no excuse not to learn
<Evolution>
oh I'm fine with learning.
<Evolution>
just not great at it for some things.
<jachymko>
why does nanoc throw CannotCreateMultipleSnapshotsWithSameName when creating two snapshots with the same *contents*?
<jachymko>
snapshot :asnapshot
<jachymko>
e.g. snapshot :a; snapshot :b
julian37 has joined #nanoc
<julian37>
hi! a few months ago I made a page with nanoc and got everything working... including cache busting, gzip compression, compass integration and all sorts of neat stuff
<julian37>
now I want to add i18n and I'm really struggling getting the Rules right. anybody around who could give me a hand? basically, I'm trying to generate foo/en/index.html and foo/de/index.html out of the same source file foo.haml, each time with a different setting for I18n.locale
<julian37>
a few months back I had a full mental model of how it all fits together, compile-vs-route wise
<julian37>
but I think it has faded rather quickly
<julian37>
I've added rules to the effect of 'route "/foo/#{locale}/", :rep => :"locale_#{locale}"' but nanoc compile doesn't seem to want to pick them up
<julian37>
can somebody remind me how I'd go about the basic parts: ensuring *that* a file "foo/en/index.html" is generated. I'm pretty sure that once I'm at that point I'll figure out *how* it is going to get generated
<jachymko>
so you want to have one source item? then simply make "route '*', :rep => 'locale_en'" and "compile '*', :rep => 'locale_en'" rules
<jachymko>
and for every other lang
<julian37>
right... sounds simple enough. sorry, it's been a while. thanks
<julian37>
jachymko: if I want to combine the locale rep with a gzip rep, do I just use a Ruby array?
<jachymko>
i don't know. perhaps there's a way of generating rules programmatically, but if there isn't, you will need to have both gzip and normal rep for every language