+ [2016-04-28T20:59:35Z] eightfold <li><a href="/works/{{ gallery.id }}"{% if page.url | remove: "/works/" | remove: "/index.html" == "{{ gallery.id }}" %} class="current"{% endif %}>{{ gallery.description }}</a></li>
+ [2016-04-28T21:00:06Z] eightfold i’m going crazy about jekyll not acting as i think it should
+ [2016-04-28T21:00:50Z] eightfold i know its hard to read without any context, but i’m trying to add a “current” class to the currently open page
+ [2016-04-28T21:01:42Z] eightfold output of {{ gallery.id }} is the same as output for {{ page.url | remove: "/works/" | remove: "/index.html" }}
+ [2016-04-28T21:02:26Z] eightfold and it should generate the class only for the <li>’s where the gallery.id is the same, but it generates it for all <li>'s

message no. 133830

Posted by eightfold in #jekyll at 2016-04-28T21:01:42Z

output of {{ gallery.id }} is the same as output for {{ page.url | remove: "/works/" | remove: "/index.html" }}
+ [2016-04-29T02:14:44Z] jaybe ./later tell eightfold re: "current class" w/liquid, etc. refer to the factoid: ./whatis jekyllrb.com - this example from jekyllrb.com should help and show you how/the way
+ [2016-04-29T02:14:45Z] jekyllrb The operation succeeded.
+ [2016-04-29T22:20:09Z] njumdl2014 jekyll is great to host my blog on github.
+ [2016-04-30T00:11:09Z] miklb If I want to use `permalink: title` and in my Front Matter if title isn't a string, I'm not getting a permalink. Am I missing something?
+ [2016-04-30T02:22:02Z] miklb Think I miss understood where title was derived from, but if I make title a string in front matter, it does render a URL, otherwise I get `/title`. Likewise, if I set `permalink: slug` I get `/slug` for a URL even with `slug; example-post-title` in front matter. :/