mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-02 01:58:49 -05:00
50 lines
697 B
Markdown
50 lines
697 B
Markdown
|
---
|
||
|
title: Menu Variables
|
||
|
linktitle: Menu Variables
|
||
|
description: A menu entry in a menu template has specific variables and functions to make menu management easier.
|
||
|
date: 2017-03-12
|
||
|
publishdate: 2017-03-12
|
||
|
lastmod: 2017-03-12
|
||
|
categories: [variables and params]
|
||
|
#tags: [menus]
|
||
|
draft: false
|
||
|
menu:
|
||
|
docs:
|
||
|
parent: "variables"
|
||
|
weight: 50
|
||
|
weight: 50
|
||
|
sections_weight: 50
|
||
|
aliases: [/variables/menu/]
|
||
|
toc: false
|
||
|
---
|
||
|
|
||
|
The [menu template][] has the following properties:
|
||
|
|
||
|
`.URL`
|
||
|
: string
|
||
|
|
||
|
`.Name`
|
||
|
: string
|
||
|
|
||
|
`.Menu`
|
||
|
: string
|
||
|
|
||
|
`.Identifier`
|
||
|
: string
|
||
|
|
||
|
`.Pre`
|
||
|
: template.HTML
|
||
|
|
||
|
`.Post`
|
||
|
: template.HTML
|
||
|
|
||
|
`.Weight`
|
||
|
: int
|
||
|
|
||
|
`.Parent`
|
||
|
: string
|
||
|
|
||
|
`.Children`
|
||
|
: Menu
|
||
|
|
||
|
[menu template]: /templates/menu-templates/
|