jekyll-archives icon indicating copy to clipboard operation
jekyll-archives copied to clipboard

Use slug in liquid templates

Open fauno opened this issue 8 years ago • 4 comments

I needed to use the slug on a layout and nothing was being printed until I realized the attribute isn't available in liquid :)

fauno avatar Jun 12 '17 20:06 fauno

/cc #113

parkr avatar Oct 26 '17 19:10 parkr

~~Superseded by #129~~

ashmaroli avatar Apr 29 '20 06:04 ashmaroli

@ashmaroli hi, can i ask why this pr went ignored for three years and then a newer one that implements the same feature gets accepted?

fauno avatar Apr 29 '20 13:04 fauno

Hi @fauno Technically yes, both PRs have a common ground. But mainly, this one was about having a slug attribute exposed via Liquid. Like, rendering value via {{ page.slug }}. But the intention was not clear.. there were no tests to demonstrate the expected results either.

Looking at this again, this is not the same feature as what is on current master.. You are welcome to rebase to master, and add some tests.

ashmaroli avatar Apr 29 '20 14:04 ashmaroli