Files
liquid/_posts/objects/current-page.md
2014-07-23 11:17:11 -04:00

595 B

layout, title, nav
layout title nav
default current_page
group
Liquid Variables

current_page

current_page returns the number of the page you are on when browsing through paginated content. It can be used outside the paginate block.

Input

{% highlight html %}{% raw %} {{ page_title }} - Page: {{ current_page }} {% endraw %}{% endhighlight %}

Output

{% highlight html %}{% raw %} Summer Collection - Page: 1 {% endraw %}{% endhighlight %}