From b2a719fe2587a00945f88f29325c009500a9111f Mon Sep 17 00:00:00 2001 From: Jeremy Schoonover Date: Tue, 28 Jan 2025 14:54:39 -0600 Subject: [PATCH] Update children.md Add documentation for checking the current page's children variable. --- content/collections/tags/children.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/collections/tags/children.md b/content/collections/tags/children.md index 04bf66911..0542784c7 100644 --- a/content/collections/tags/children.md +++ b/content/collections/tags/children.md @@ -33,3 +33,17 @@ You can get the parent by using the [Parent tag](/tags/parent). ``` :: + +## Checking for children on the current page + +Since `children` is an Antlers tag, you need to enclose `children` in curly brackets to access the page's `children` variable. + +``` +{{ if {children} }} + +{{ /if }} +```