mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
moved everything to root folder
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
---
|
||||
layout: default
|
||||
title: current_page
|
||||
|
||||
nav:
|
||||
group: Liquid Variables
|
||||
---
|
||||
|
||||
# current_page
|
||||
|
||||
<code>current_page</code> returns the number of the page you are on when browsing through <a href="/themes/liquid-documentation/tags/theme-tags/#paginate">paginated</a> content. It can be used outside the <code>paginate</code> block.
|
||||
|
||||
<p class="input">Input</p>
|
||||
|
||||
{% highlight html %}{% raw %}
|
||||
{{ page_title }} - Page: {{ current_page }}
|
||||
{% endraw %}{% endhighlight %}
|
||||
|
||||
<p class="output">Output</p>
|
||||
|
||||
<div>
|
||||
{% highlight html %}{% raw %}
|
||||
Summer Collection - Page: 1
|
||||
{% endraw %}{% endhighlight %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user