ddfreyne changed the topic of #nanoc to: 3.7.4 (November 23rd) | 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
alerante has quit []
cDlm has quit [Quit: mi dormas]
cDlm has joined #nanoc
<guardian> o/
<FabianB> hi, i have a problem with paths, i generate markdown files that are filtered by nanoc kramdown; e.g. news/foo.md becomes news/foo/index.html
<guardian> look at your Rules files
<FabianB> in foo.md there's a reference to an image with a relative path like images/img.png
<FabianB> so the image is in news/images/img.png
<FabianB> from news/foo/index.html this should be rewritten to ../images/img.png
<FabianB> i guess i need to write my own filter to achieve that
<guardian> maybe not
<FabianB> i thought relativize paths filter is just for nanoc managed paths
<FabianB> the img path is just a link in the markdown, not generated by nanoc
<guardian> then you may want to use http://nanoc.ws/docs/api/Nanoc/Helpers/LinkTo.html from the markdown
<guardian> by e.g. filtering .md items first by :erb then by :kramdown
<FabianB> yeah, can use that in my own filter, but the .md files are generated elsewhere, so no erb syntax allowed
<FabianB> like content.gsub(/<img src=\"(*)\"/, "<img src='../$1'") <-- just pseudo code, gonna try to write such a filter
<FabianB> ha, even simpler works, even if it's very specific to my site: content.to_s.gsub("![file](images/", '![file](../images/')
number-six has quit [Ping timeout: 260 seconds]
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger has joined #nanoc
momolog has joined #nanoc
momolog has quit [Client Quit]
momolog has joined #nanoc
aljoscha_momolog has joined #nanoc
aljoscha_momolog has quit [Remote host closed the connection]
zi_ has joined #nanoc
momolog has quit [*.net *.split]
zi has quit [*.net *.split]
zi_ is now known as zi
tantalum has joined #nanoc
FabianB_ has joined #nanoc
FabianB has quit [Ping timeout: 255 seconds]
VitamineD has joined #nanoc
jugglinmike1 has joined #nanoc
tantalum has quit [Quit: Leaving]
tantalum has joined #nanoc
tantalum has quit [Quit: Leaving]