diff options
Diffstat (limited to 'content/en/functions/collections/After.md')
-rw-r--r-- | content/en/functions/collections/After.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/content/en/functions/collections/After.md b/content/en/functions/collections/After.md index 38cf755a0..751ad0bef 100644 --- a/content/en/functions/collections/After.md +++ b/content/en/functions/collections/After.md @@ -35,7 +35,7 @@ The template above is rendered to: ## Example of `after` with `first`: 2nd–4th most recent articles -You can use `after` in combination with the [`first`] function and Hugo's [powerful sorting methods][lists]. Let's assume you have a list page at `example.com/articles`. You have 10 articles, but you want your templating for the [list/section page] to show only two rows: +You can use `after` in combination with the [`first`] function and Hugo's [powerful sorting methods](/quick-reference/page-collections/#sort). Let's assume you have a `section` page at `example.com/articles`. You have 10 articles, but you want your template to show only two rows: 1. The top row is titled "Featured" and shows only the most recently published article (i.e. by `publishdate` in the content files' front matter). 2. The second row is titled "Recent Articles" and shows only the 2nd- to 4th-most recently published articles. @@ -66,6 +66,4 @@ You can use `after` in combination with the [`first`] function and Hugo's [power {{< /code >}} [`first`]: /functions/collections/first/ -[list/section page]: /templates/section-templates/ -[lists]: /templates/lists/#sort-content [`slice`]: /functions/collections/slice/ |