Logs for #nikola for 2015-10-26

12:42:09 <ralsina> ChrisWarrick: check out http://vincent.jousse.org/tech/
13:11:09 <KwBot> [nikola] ralsina opened issue #2155: Use CSS scroll snap in the book template https://github.com/getnikola/nikola/issues/2155
13:54:18 <Koni> Hi, I get an error when compiling. I customized post_list template. Issue happen when I use a ${messages("Read More")} in post list templte.
13:54:27 <Koni> Is it normal ?
13:58:51 <ralsina> Koni: shouldn't happen
13:59:07 <ralsina> Koni: what's the error?
14:00:19 <Koni> ralsina:  File "/opt/nikola/projects/konilabs-web/cache/.mako.tmp/post_list_thumb.tmpl.py", line 72, in render_content __M_writer(unicode(messages("Read More"))) TypeError: 'Undefined' object is not callable 
14:01:58 <ralsina> Koni: the post list template apparently is not being passed the messages object
14:02:03 <ralsina> Koni: please file an issue
14:02:25 <Koni> ok I will do that
14:02:30 <Koni> thanks :)
14:04:05 <Koni> ralsina: I found that I use 7.7.0, Do I need to upgrade and test again ? 
14:04:23 <ralsina> Koni: probably won't work either, but can't hurt :-)
14:07:47 <KwBot> [nikola] konilabs opened issue #2156: ${messages("xxx")} not working in post-list template https://github.com/getnikola/nikola/issues/2156
14:08:13 <Koni> ralsina: looks like KwBot is faster than me :)
14:12:36 <ralsina> Koni: awesome, thanks!
14:15:27 -GitHub[nikola]:#nikola- [nikola] ralsina created pass-messages-to-post-list (+1 new commit): http://git.io/vWoFk
14:15:27 -GitHub[nikola]:#nikola- nikola/pass-messages-to-post-list da7f44e Roberto Alsina: fix #2156
14:15:47 -GitHub[nikola]:#nikola- [nikola] ralsina opened pull request #2157: fix #2156 (master...pass-messages-to-post-list) http://git.io/vWoF3
14:15:50 <ralsina> Koni: can you check if that one liner fixesit for you? https://github.com/getnikola/nikola/pull/2157
14:16:31 <Koni> ralsina: you mean that the fix is already there ?
14:16:46 <ralsina> Koni: it's a branch with something I think is a fix in it ;-)
14:17:06 <ralsina> Koni: here you can see what I think that fix is: https://github.com/getnikola/nikola/pull/2157/files
14:23:18 <Koni> ralsina: let me check if you are magic :)
14:24:05 <Koni> ralsina: Perfect !!! I love it when a plan comes together
14:32:10 <ralsina> Koni: awesome, merging...
14:32:44 <KwBot> [nikola] ralsina closed issue #2156: ${messages("xxx")} not working in post-list template https://github.com/getnikola/nikola/issues/2156
14:32:53 -GitHub[nikola]:#nikola- [nikola] ralsina closed pull request #2157: fix #2156 (master...pass-messages-to-post-list) http://git.io/vWoF3
14:32:55 <ralsina> Koni: there you go.
16:11:20 <Koni> ralsina: I have a question regarding template for post-list
16:11:37 <ralsina> Koni: shoot, I may take a little while to answer tho
16:11:50 <Koni> in my template I use : <h4>${post.title(lang)}</h4>
16:12:10 <Koni> at the end I get my title between <h5> tags
16:13:55 <ChrisWarrick> Koni: that’s header demotion
16:13:56 <ralsina> Koni: yes, all titles are downgraded one level
16:14:16 <ralsina> Koni: check the conf.py for "demotion" if you really want to disable it but you probably don't :-)
16:14:44 <Koni> ok... that is why my h1 is always my page title
16:14:47 <ChrisWarrick> Koni: Certain input formats, including reST and Markdown, demote headers in documents by one level to make <h1>post title</h1> the only h1 around.  You could set DEMOTE_HEADERS = 0 to get rid of that (site-wide).
16:14:54 <Koni> and then first header starts at h2
16:16:03 <Koni> is it done to allow Rest compatibility ?
16:16:21 <Koni> and to be sure that page title is h1 ?
16:16:49 <ChrisWarrick> Koni: what “Rest compatibility” do you mean?
16:16:59 <Koni> restructured text
16:17:09 <ChrisWarrick> Koni: reST is not responsible for this
16:17:39 <ChrisWarrick> Koni: We do all this to preserve a proper document structure, making <h1> post title and putting everything else lower in the hierarchy 
16:17:56 <Koni> ok I understand
16:18:12 <Koni> I just wondered where was the "black magic"
16:18:29 <Koni> Thanks this is pretty clear to me
18:08:14 <KwBot> [nikola] ralsina opened issue #2158: On my site, nikola orphans reports thousands of files it should not. https://github.com/getnikola/nikola/issues/2158
18:08:23 <KwBot> [nikola] ralsina assigned issue #2158 to ralsina: On my site, nikola orphans reports thousands of files it should not. https://github.com/getnikola/nikola/issues/2158