Logs for #nikola for 2016-02-24

05:11:14 <[Tritium]> have not had a chance to work on that thing with splitting posts/pages and paginating, but i know how I will do it - introduce a new function into the template splits post.text() on a magic comment if its there, wrapping each section in a new div that can be used as an item in pagination js.
13:32:36 <ralsina> [Tritium]: that should work
13:32:54 <ralsina> [Tritium]: hopefully the pagination thing is smart enough to notice you followed a link to another page :-)
14:23:43 <[Tritium]> most of them do check fragments.
15:13:52 <[Tritium]> does magic link:// syntax work to find images in ./images/ >
15:13:53 <[Tritium]> ?
15:30:40 <ralsina> [Tritium]: maybe, let me check
15:31:42 <ralsina> [Tritium]: No
15:32:22 <ralsina> [Tritium]: maybe it could be added
15:32:29 <[Tritium]> one second
15:33:26 <KwBot> [nikola] tritium21 opened issue #2265: Support linking to images with link:// syntax https://github.com/getnikola/nikola/issues/2265
15:33:55 <ralsina> [Tritium]: it needs thinking a little about how the syntax would be
15:34:02 <ralsina> link://nameofimage.jpg?
15:34:13 <ralsina> ok, not that
15:34:21 <ralsina> link://image/nameofimage?
15:34:43 <ralsina> also, considering you can have more than one images folder ...
15:34:57 <[Tritium]> you can link to slugs across posts... 
15:35:05 <[Tritium]> just, search path logic there
15:35:18 <ralsina> Yes, but we have a global list of slugs :-)
15:35:54 <ralsina> so, sure, link://image/folder/imagename.jpg and try to be smart finding it
15:36:19 <ralsina> we should try to make it work even when the folder is missing, that sort of thing
15:37:23 <[Tritium]> link://images/[optional_folder/]filename.ext, where if optional folder is missing, and filename.ext exists in 2 locations, the one in the folder defined first wins
16:07:46 <ChrisWarrick> [Tritium]: is it really useful?
16:08:19 <ChrisWarrick> [Tritium]: /images/foo.png is shorter, and it doesn’t introduce the well of complexity we needed to introduce for galleries and listings
16:09:20 <[Tritium]> ChrisWarrick: imagine if you will, a situation where you have STRIP_INDEXES, pretty URLS, perhaps even slugs changing the overall path, and no certenty about where the root of the site is.
16:10:10 <ChrisWarrick> [Tritium]: If you set SITE_URL correctly, /images/foo.png will work no matter what, because we fix root-relatie links to be site-relative links.
16:10:26 <[Tritium]> hold on
16:10:27 <ChrisWarrick> [Tritium]: If SITE_URL is incorrect, you have way bigger problems, like <base> breaking all links.
16:11:53 <KwBot> [nikola] tritium21 closed issue #2265: Support linking to images with link:// syntax https://github.com/getnikola/nikola/issues/2265
16:12:21 <[Tritium]> I did not know you fixed root relative
16:12:39 <ChrisWarrick> we mess with links a lot
16:13:08 <ChrisWarrick> note our themes use root-relative paths, and yet they work fine
18:55:53 <ChrisWarrick> ralsina: Enough is enough. I just set a deadline for the Octopress theme — if it isn’t fixed by 2016-03-09 (or at least a fix is not promised), I’ll delete it.
18:56:09 <ralsina> ChrisWarrick: hmmmm ok
18:56:17 <ralsina> ChrisWarrick: do you have a list of the defficiencies?
18:56:27 <ChrisWarrick> ralsina: https://github.com/magmax/nikola-theme-octopress/issues/5
18:56:36 <ChrisWarrick> ralsina: and that is probably a start
18:57:34 <ralsina> do you think it's a better idea to fix it, or to do a new theme from scratch? I have done the latter a few times.
18:57:54 <ChrisWarrick> ralsina: nuke it
18:58:59 <ChrisWarrick> ralsina: because it uses a nonstandard file structure, it’s hard to fix
19:09:37 <ElPasmo> Hi all, I'm trying to install nikola via pip on a Trisquel 7.0 and it freezes when Running setup.py bdist_wheel for lxml
19:11:59 <ElPasmo> wow! forget it, it took ages to continue :D
19:12:03 <ElPasmo> sorry!
19:12:46 <ChrisWarrick> ElPasmo: this is typical lxml
19:13:01 <ChrisWarrick> ElPasmo: and if you have less than ~1.5G of ram, it would crash with a Killed message
19:13:23 <ElPasmo> yup, 2G here, so I'm clear :P
19:14:15 <ChrisWarrick> (a real problem on VPSes, that is until you set up a swapspace)