ddfreyne changed the topic of #nanoc to: 3.6.4 (may 29th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
number-six has joined #nanoc
matjas has quit [Ping timeout: 264 seconds]
matjas has joined #nanoc
eroc has joined #nanoc
<eroc> Hello. Can anyone help me set the feed_url so it gets correctly picked up by the call to atom_feed? Here's my code of feed.haml. It gets routes to feed.xml
<eroc> = xml_sitemap items: @items.reject{ |i| exclude_from_sitemap(i) }¬
<eroc> The "exclude_from_sitemap" method just weeds out css, js, etc.
<eroc> I know I'm supposed to set feed_url on the feed item, but I'm having trouble figuring out what that item is and how to set properties on it.
<eroc> In case it's not abundantly obvious, I'm new to nanoc.
<bobthecow> feed_url and stuff go in the frontmatter of your feed item file.
<bobthecow> i.e. the yaml section at the top.
<bobthecow> um.
<bobthecow> the thing you pasted is how you do a sitemap, not a feed :)
<bobthecow> this is a feed:
<eroc> Whoops, my bad. Here was the code:
<eroc> = atom_feed title: 'Agile Commerce Blog', limit: 10
<bobthecow> i believe title, author_name and author_uri are the only things you need to include in your feed's metadata.
<eroc> I think in my tired state, I might have been editing the wrong file. Here goes with the front matter.
<bobthecow> you can pass things in to the atom_feed helper, or you can set them in the frontmatter. i prefer the frontmatter, personally, because it means my file is cleaner :)
<eroc> I checked the source and passing in the feed_url isn't supported. It's the one property (that I noticed) that couldn't be passed in.
<eroc> Adding it to the front matter worked like a charm. Thanks.
<bobthecow> ahh. interesting.
<bobthecow> most of 'em can be passed in. that's probably an oversight.
<bobthecow> but generally, nanoc prefers frontmatter anyway.
<eroc> I hadn't made the connection between the frontmatter and the @item object within the atom_feed method.
<bobthecow> because then it's a property of the feed item itself, not just a variable set in your template.
<eroc> Cool, I'll adjust my code to favor front matter.
<bobthecow> yeah, @item is always the thing currently being compiled.
<eroc> Thanks again.
<bobthecow> no problem.
<eroc> One more totally random question. When I throw front matter in a markdown file for a blog article, it screws with the syntax highlighting in my code editor (Vim). When I add "created_at", it looks like the start of some underlined text. It's not a big deal, but an annoyance. For my articles, I've been breaking out the front matter into a separate yaml file, but that's sort of a pain also. Any pro tips on how to address this?
<bobthecow> nah. i just put up with it :(
<bobthecow> try that?
<bobthecow> at least the syntax highlighter i use only has problems when i have multiple underscores in the same line.
<bobthecow> it deals with `foo: bar_baz` just fine.
skroon has quit [Ping timeout: 245 seconds]
skroon has joined #nanoc
alerante has quit [Remote host closed the connection]
rolfb has joined #nanoc
pavelkunc has joined #nanoc
skroon_ has joined #nanoc
skroon has quit [Ping timeout: 256 seconds]
skroon_ has quit [Ping timeout: 245 seconds]
skroon has joined #nanoc
<ddfreyne> bobthecow: Idea for quick data sources:
<ddfreyne> bobthecow: in Rules: source :items, :from => :filesystem, :path => 'content/**/*', :strip => /^content\//
<ddfreyne> It makes the answer to the question "where does my data come from" more explicit
rolfb_ has joined #nanoc
rolfb has quit [Read error: Connection reset by peer]
rolfb_ has quit [Quit: Linkinus - http://linkinus.com]
rolfb has joined #nanoc
skroon_ has joined #nanoc
skroon has quit [Ping timeout: 268 seconds]
skroon_ has quit [Ping timeout: 268 seconds]
<cDlm> didn't read before, but +1 to that last idea
cDlm has quit [Ping timeout: 264 seconds]
cDlm has joined #nanoc
Funkypenguin has quit [Read error: Connection reset by peer]
rolfb has quit [Quit: Leaving...]
Funkypenguin has joined #nanoc
alerante has joined #nanoc
skroon has joined #nanoc
jugglinmike has joined #nanoc
eroc has quit [Quit: eroc]
skroon_ has joined #nanoc
skroon has quit [Ping timeout: 246 seconds]
alerante has quit [Remote host closed the connection]
jugglinmike has quit [Excess Flood]
jugglinmike has joined #nanoc
skroon_ has quit [Ping timeout: 256 seconds]
VitamineD has joined #nanoc
cDlm has quit [Ping timeout: 264 seconds]
VitamineD is now known as cDlm
<bobthecow> ddfreyne: https://waffle.io
<bobthecow> trello but with github issues as the data store.
<bobthecow> i really dig it.
<bobthecow> ddfreyne: i don't know that i like mixing data sources in with rules.
<bobthecow> i might come around, but to me rules is "here's how to compile my site"
<bobthecow> data sources seems a lot more config-y
louquillio__ has joined #nanoc
louquillio has quit [Read error: Connection reset by peer]
<ddfreyne> bobthecow: I'm thinking of Rules more as a general Makefile
pavelkunc has quit [Quit: Leaving.]
<ddfreyne> you specify the source data in there as well, in a way.
cDlm has quit [Ping timeout: 276 seconds]
skroon has joined #nanoc
skroon has quit [Ping timeout: 276 seconds]
louquillio__ has quit [Remote host closed the connection]
pavelkunc has joined #nanoc
louquillio__ has joined #nanoc
louquillio__ has quit [Client Quit]
louquillio__ has joined #nanoc
louquillio__ has quit [Client Quit]
jaspervdj has quit [Ping timeout: 240 seconds]
jaspervdj has joined #nanoc
pavelkunc has quit [Quit: Leaving.]
skroon has joined #nanoc
skroon has quit [Ping timeout: 240 seconds]
louquillio has joined #nanoc
cDlm has joined #nanoc
Funkypenguin has quit [Read error: Connection reset by peer]
Funkypenguin has joined #nanoc
jugglinmike has quit [Quit: Leaving.]
louquillio has quit [Remote host closed the connection]