How to create a liquid tag extension which return filename in Jekyll

Viewed 453

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
2 Answers
Related