It's pretty basic stuff, I guess but I couldn't figure out how to do it.
What I want to do is very simple.
By using Jekyll plugin system, I want to extend Liquid tag to return filename of post.
{{% page.filename %}}
will parse to something like
jekyll-plugin.markdown
Well, it's not exactly the method you're looking for, but you could just include the filename in the yaml headers for the file. It's probably a bad choice for files that you'll move around and tweak, but since there don't appear to be a wealth of answers pouring forth, maybe it's good enough.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With