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

     1  ---
     2  title: .IsMenuCurrent
     3  description:
     4  godocref:
     5  date: 2017-02-01
     6  publishdate: 2017-02-01
     7  lastmod: 2017-02-01
     8  categories: [functions]
     9  menu:
    10    docs:
    11      parent: "functions"
    12  keywords: [menus]
    13  signature: ["PAGE.IsMenuCurrent MENU MENUENTRY"]
    14  workson: [menus]
    15  hugoversion:
    16  relatedfuncs: ["HasMenuCurrent"]
    17  deprecated: false
    18  draft: false
    19  aliases: []
    20  needsexample: true
    21  ---
    22  
    23  `.IsMenuCurrent` is a method in `Page` object returning a _boolean_ value. It
    24  returns `true` if the PAGE is the same object as the `.Page` in MENUENTRY in a
    25  given MENU.
    26  
    27  You can find its example use in [menu templates](/templates/menu-templates/).