+ [2016-06-13T19:12:29Z] G33kDude Thank you
+ [2016-06-13T19:13:16Z] G33kDude I just realized I forgot to set up lightbox
+ [2016-06-13T19:45:04Z] pilne why oh why didn't I go with jekyll first... sooooooo much nicer than ghost, better late than never eh?
+ [2016-06-13T20:02:46Z] inni Happy to have you on board, pilne. :) I see-sawed between Jekyll and Wordpress for a while, but I can't imagine using a traditional CMS anymore
+ [2016-06-13T20:04:04Z] pilne just recently really got to dive into ruby, and i keep saying "why didn't i do this sooner" especially when I find a tool that is similar (often better) to one i've already been using...

message no. 139051

Posted by G33kDude in #jekyll at 2016-06-13T14:13:50Z

I have two arrays listed in my front matter, one with IDs and one with titles 'titles:' ' - TitleA' ' - TitleB'. In my page body I have a loop over the IDs, and in that loop I have '{% cycle page.titles %}'. In the generated output, I seem to get every title appended together every time, e.g. 'TitleATitleB' <some content based on ID> 'TitleATitleB' <more content> instead of what I wanted, 'TitleA' <content>
+ [2016-06-14T02:59:24Z] mostlybadfly Hello all, I would like to include javascript for one of my pages in _layouts. Where would be the best place to place js and is there specific syntax that would be needed in the html?
+ [2016-06-14T03:00:05Z] mostlybadfly right now I have an html file in _layouts and the corresponding .js file at '../js/app.js', but it doesn't seem to load as expected
+ [2016-06-14T03:03:48Z] GeekDude mostlybadfly: Instead of using relative paths, use absolute paths based on site.baseurl
+ [2016-06-14T03:04:00Z] GeekDude e.g. "{{ site.baseurl }}/js/app.js"
+ [2016-06-14T03:04:15Z] mostlybadfly I see ok. I think I just found something else out too