Logs for #nikola for 2017-09-18

10:25:50 <gour> morning
10:26:39 <gour> anyone can comment "The issue is caused by using old-style APIs though." (https://github.com/getnikola/nikola/issues/2894#issuecomment-326978867), iow. it is supposed to be sorted out in V8 not certain?
10:38:39 <ChrisWarrick> gour: A fix would not be v8-specific
10:39:55 <ChrisWarrick> gour: If you really want this fixed, why not contribute it yourself?
10:45:22 <ChrisWarrick> gour: Figure out if asciidoctor supports input from stdin. Read the source in Nikola, split, and pass it in like that. We’re volunteers who don’t have (a) time (b) energy to fullfil every single request
11:11:26 <gour> ChrisWarrick: "If FILE is - then the AsciiDoc source is read from standard input." (asciidoctor docs, probably same for asciidoc
11:11:47 <gour> will look further...
14:10:12 <ralsina> berti: it would be pretty simple to create a thumbnail shortcode as a templated shortcode
14:24:39 -GitHub[nikola]:#nikola- [nikola] ralsina created thumbnail-shortcode (+1 new commit): https://git.io/v5bgW
14:24:39 -GitHub[nikola]:#nikola- nikola/thumbnail-shortcode cab7b40 Roberto Alsina: New thumbnail shortcode
14:25:09 -GitHub[nikola]:#nikola- [nikola] ralsina opened pull request #2903: New thumbnail shortcode (master...thumbnail-shortcode) https://git.io/v5bg4
14:25:19 <ralsina> berti: see PR 2903 ^
14:25:30 <ralsina> berti: actual improvements to make it nice are very much welcome
15:57:47 -travis-ci:#nikola- getnikola/nikola#9486 (thumbnail-shortcode - cab7b40 : Roberto Alsina): The build passed.
15:57:48 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/commit/cab7b40153ca
15:57:48 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/276874229
18:36:22 <[Tritium]> is there a setting to force a trailing slash to be added to pretty urls?
18:36:45 <[Tritium]> (working around a server config i dont control)
18:43:02 <berti> ralsina: yeah, shortcodes are really nice
18:43:18 <KwBot> [nikola] ralsina closed issue #2859: theme blogtxt does not support image galleries https://github.com/getnikola/nikola/issues/2859
18:43:30 -GitHub[themes]:#nikola- [nikola-themes] ralsina pushed 1 new commit to master: https://git.io/v5Nf4
18:43:30 -GitHub[themes]:#nikola- nikola-themes/master c8c9187 Roberto Alsina: Make galleries "work" for blogtxt
18:43:46 <ChrisWarrick> [Tritium]: aren’t they already there?
18:44:53 <[Tritium]> when you do link://slug/something it does not add the trailing slash
18:45:54 <[Tritium]> My config is a total mess without comments, so i cant grep... theres a sample config on the site.  I should have checked there
18:45:57 <berti> ralsina: a quick one i've done yesterday https://paste.pound-python.org/show/31mFpUItJYSOea0LwX3M/
18:46:42 <ralsina> berti: much nicer than mine, feel free to do a PR ;-)
18:47:00 <berti> ok
18:47:18 <[Tritium]> STRIP_INDEXES
18:47:34 <[Tritium]> setting it to true was the correct thing to do with my previous server config
18:48:41 <ChrisWarrick> berti, ralsina: I think a code-based shortcode would work better. Jinja won’t accept code like this
18:48:47 <x1101> ralsina, I got an email that you "fixed" a bug that I'd raised, that was really "I didn't sufficiently read the docs". May I ask how? (2859)
18:48:59 <ralsina> ChrisWarrick: well, it would accept mine, I think?
18:49:19 <ChrisWarrick> ralsina: Test it
18:49:33 <ralsina> x1101: well, I made it work :-)
18:49:46 <ralsina> x1101: blogtxt now supports galleries
18:49:47 <berti> ChrisWarrick: yes, it's mako specific for my theme
18:49:55 <ChrisWarrick> [Tritium]: Reproduced
18:50:04 <berti> but a plugin shoul be done in a breeze too
18:50:08 <ralsina> Maybe a similar shortcut with jinja-specific code is doable
18:50:14 <ralsina> honestly too boring to try :-)
18:50:27 <x1101> ralsina, I look forward to trying it out! I really loved blogtxt, but needed image galleries. 
18:50:40 <ralsina> Yeah, a shortcode plugin is like 10 lines of code, just precook all the variables to expected value
18:51:10 <ralsina> x1101: seems to me like the lightbox is not working, but at least you get the nice image layout in the gallery
18:52:24 <ralsina> x1101: this is the fix if you don't want to wait for things to update https://github.com/getnikola/nikola-themes/commit/c8c91874ccaea68fa9182a193682425693025396
18:56:04 -GitHub[nikola]:#nikola- [nikola] Kwpolska pushed 1 new commit to master: https://git.io/v5NUq
18:56:04 -GitHub[nikola]:#nikola- nikola/master 6042ccb Chris Warrick: Do not strip trailing slash in slug magic links...
18:56:06 <ChrisWarrick> [Tritium]:18:57:21 <x1101> ralsina, I was content with "use another theme" as a solution. I guess I should have actually closed it. I really appreciate the fix though. I can switch my site back to blogtxt :D
18:57:58 <[Tritium]> ChrisWarrick: awesome.  I'll revert my strip indexes workaround when that goes stable :D
18:58:27 <ChrisWarrick> [Tritium]: patching your copy of Nikola (it’s one line) may be a better choice
18:59:19 <[Tritium]> Looking at the diff, its a 6 char diff
21:27:15 -travis-ci:#nikola- getnikola/nikola#9488 (master - 6042ccb : Chris Warrick): The build passed.
21:27:16 -travis-ci:#nikola- Change view: https://github.com/getnikola/nikola/compare/a9c088966be2...6042ccb71f14
21:27:16 -travis-ci:#nikola- Build details: https://travis-ci.org/getnikola/nikola/builds/276984753