github.com/rabbouni145/gg@v0.47.1/docs/content/en/readfiles/sectionvars.md (about)

     1  .CurrentSection
     2  : The page's current section. The value can be the page itself if it is a section or the homepage.
     3  
     4  .InSection $anotherPage
     5  : Whether the given page is in the current section. Note that this will always return false for pages that are not either regular, home or section pages.
     6  
     7  .IsAncestor $anotherPage
     8  : Whether the current page is an ancestor of the given page. Note that this method is not relevant for taxonomy lists and taxonomy terms pages.
     9  
    10  .IsDescendant $anotherPage
    11  : Whether the current page is a descendant of the given page. Note that this method is not relevant for taxonomy lists and taxonomy terms pages.
    12  
    13  .Parent
    14  : A section's parent section or a page's section.
    15  
    16  .Section
    17  : The [section](/content-management/sections/) this content belongs to. **Note:** For nested sections, this is the first path element in the directory, for example, `/blog/funny/mypost/ => blog`.
    18  
    19  .Sections
    20  : The [sections](/content-management/sections/) below this content.