+[9 years ago]eightfold<li><a href="/works/{{ gallery.id }}"{% if page.url | remove: "/works/" | remove: "/index.html" == "{{ gallery.id }}" %} class="current"{% endif %}>{{ gallery.description }}</a></li> +[9 years ago]eightfoldi’m going crazy about jekyll not acting as i think it should +[9 years ago]eightfoldi know its hard to read without any context, but i’m trying to add a “current” class to the currently open page +[9 years ago]eightfoldoutput of {{ gallery.id }} is the same as output for {{ page.url | remove: "/works/" | remove: "/index.html" }} +[9 years ago]eightfoldand 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
+[9 years ago]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 +[9 years ago]jekyllrbThe operation succeeded. +[9 years ago]njumdl2014jekyll is great to host my blog on github. +[9 years ago]miklbIf 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? +[9 years ago]miklbThink 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. :/