<kAworu>
is there anyway to do some kind of "layout inheritance?"
<kAworu>
like having an "article" layout based on the "default" layout
<kAworu>
maybe I'm not using the right mechanism, I wish I could also have some frontmatter variables "defined" by the layout.
<kAworu>
(what is now my "article" layout, which could define stuff like kind: article)
pkunc has joined #nanoc
pkunc1 has joined #nanoc
pkunc has quit [Ping timeout: 252 seconds]
<ddfreyne>
kAworu: Hm, you can render two layouts after another. That might be enough to fill your need.
<ddfreyne>
kAworu: e.g. layouts/post.erb with <div class="post"><%= yield %></div> and layouts/default.erb with all the rest, usual stuff. Then in Rules call layout '/post/' and layout '/default/'
<kAworu>
ddfreyne: ohh that's it, thank you
<kAworu>
ddfreyne: about the fromtmatter variables, should I also use Rules to add, for example, "kind: article" ?
cDlm has quit [Quit: mi dormas]
cDlm has joined #nanoc
alerante has joined #nanoc
<ddfreyne>
kAworu: I generally prefer to put everything inside the files if possible.
<ddfreyne>
kAworu: If not, encod esome information in the identifiers (e.g. "/articles/whatever" is clearly an article, so you don't need the kind: article)
<kAworu>
ddfreyne: thank you
<kAworu>
ddfreyne: about the second option it would be something like: compile "/articles/*" do item[:kind] = 'article' end
<kAworu>
in Rules, correct ?
<kAworu>
I'm still wrapping my head around the "build process" of nanoc
<kAworu>
ow no it is not possible (frozen)
<guardian>
damn those kramdown warnings are annoying
<guardian>
when you filter a partial markdown document with kramdown, it outputs e.g html5 with non self closing tags for <img> and <br>. But then if you insert that back as plain HTML inside another .md document, Kramdown complains <img> and <br> are not self closing
<guardian>
that's just dumb
cDlm has quit [Ping timeout: 252 seconds]
alerante has quit [Ping timeout: 256 seconds]
pkunc1 has quit [Quit: Leaving.]
jugglinmike has joined #nanoc
VitamineD has joined #nanoc
<VitamineD>
guardian: :D
<VitamineD>
\o/ computering is wonderful \o/
<VitamineD>
← channels @garybernhardt
pkunc has joined #nanoc
jonbullock has joined #nanoc
<ddfreyne>
guardian: Yes :(
<ddfreyne>
guardian: I enabled kramdown warnings in nanoc because people find them useful.
<ddfreyne>
guardian: Sadly, half of the time those warnings are not useful. :(
<ddfreyne>
kAworu: Yeah, you cannot modify items during compilation--only in preprocessing.