menu

package
v0.0.0-...-7b0100a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultMenu

type DefaultMenu struct {
	Items      []page.MenuItem
	Identifier string
	Template   string
	Theme      string
	T          *template.Template
}

DefaultMenu is the base menu struct for Beubo

func (DefaultMenu) GetIdentifier

func (m DefaultMenu) GetIdentifier() string

GetIdentifier is a getter for the Identifier property

func (DefaultMenu) GetItems

func (m DefaultMenu) GetItems() []page.MenuItem

GetItems is a getter for the Items property

func (DefaultMenu) Render

func (m DefaultMenu) Render() string

Render calls the relevant templates and functions to turn a menu into a html string for browser output

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL