hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

sectionvars.md (794B)

    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 .FirstSection
    5 : The page's first section below root, e.g. `/docs`, `/blog` etc.
    6 
    7 .InSection $anotherPage
    8 : Whether the given page is in the current section.
    9 
   10 .IsAncestor $anotherPage
   11 : Whether the current page is an ancestor of the given page.
   12 
   13 .IsDescendant $anotherPage
   14 : Whether the current page is a descendant of the given page.
   15 
   16 .Parent
   17 : A section's parent section or a page's section.
   18 
   19 .Section
   20 : 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`.
   21 
   22 .Sections
   23 : The [sections](/content-management/sections/) below this content.