diff --git a/src/_includes/examples/pagination/nav/combined.liquid b/src/_includes/examples/pagination/nav/combined.liquid new file mode 100644 index 0000000000..f279602f2b --- /dev/null +++ b/src/_includes/examples/pagination/nav/combined.liquid @@ -0,0 +1,14 @@ +{% raw %} + +{% endraw %} \ No newline at end of file diff --git a/src/_includes/examples/pagination/nav/firstlast.liquid b/src/_includes/examples/pagination/nav/firstlast.liquid new file mode 100644 index 0000000000..d3750497bf --- /dev/null +++ b/src/_includes/examples/pagination/nav/firstlast.liquid @@ -0,0 +1,12 @@ +{% raw %} + +{% endraw %} diff --git a/src/_includes/examples/pagination/nav/nextprev.liquid b/src/_includes/examples/pagination/nav/nextprev.liquid new file mode 100644 index 0000000000..350164ce6f --- /dev/null +++ b/src/_includes/examples/pagination/nav/nextprev.liquid @@ -0,0 +1,13 @@ + +{% raw %} + +{% endraw %} \ No newline at end of file diff --git a/src/docs/pagination/nav.md b/src/docs/pagination/nav.md index 5b1adaa527..fea41b6145 100644 --- a/src/docs/pagination/nav.md +++ b/src/docs/pagination/nav.md @@ -257,7 +257,10 @@ Note that if the current page (`page.url`) is the first or last in the set, we w {% renderFile "./src/_includes/syntax-chooser-tablist.11ty.js", {id: "paged-nav-nextprev", valid: "njk,js"} %}
-

This example has not yet been added—you can swap to another template language above! Or maybe you want to contribute it? {% include "edit-on-github.njk" %}

+ {%- codetitle "nextprev.liquid" %} + {%- highlight "liquid" %} + {%- include "examples/pagination/nav/nextprev.liquid" %} + {%- endhighlight %}
{%- codetitle "nextprev.njk" %} @@ -284,7 +287,10 @@ For clarity here, we’re omitting the previous and next links from the previous {% renderFile "./src/_includes/syntax-chooser-tablist.11ty.js", {id: "paged-nav-firstlast", valid: "njk,js"} %}
-

This example has not yet been added—you can swap to another template language above! Or maybe you want to contribute it? {% include "edit-on-github.njk" %}

+ {%- codetitle "firstlast.liquid" %} + {%- highlight "liquid" %} + {%- include "examples/pagination/nav/firstlast.liquid" %} + {%- endhighlight %}
{%- codetitle "firstlast.njk" %} @@ -309,7 +315,10 @@ Here’s the final pagination navigation template code, pieced together: {% renderFile "./src/_includes/syntax-chooser-tablist.11ty.js", {id: "paged-nav-combined", valid: "njk,js"} %}
-

This example has not yet been added—you can swap to another template language above! Or maybe you want to contribute it? {% include "edit-on-github.njk" %}

+ {%- codetitle "combined.liquid" %} + {%- highlight "liquid" %} + {%- include "examples/pagination/nav/combined.liquid" %} + {%- endhighlight %}
{%- codetitle "combined.njk" %}