Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReturnGeoNetHeaderBasic ¶
func ReturnGeoNetHeaderBasic(config HeaderBasicConfig) (template.HTML, error)
ReturnGeoNetHeaderBasic returns HTML for the basic GeoNet header that can be inserted into a webpage. The config is used to set certain properties.
Types ¶
type HeaderBasicConfig ¶
type HeaderBasicConfig struct { // The HTML for the logo to use. Logo template.HTML // Links to display for navigation. Note: The first link is // considered the 'home' page link. Links []HeaderBasicLink // The HTML for the home icon. This should not be changed. HomeIcon template.HTML }
type HeaderBasicLink ¶
type HeaderBasicLink struct { Title string URL string // Whether or not the link is external (displays an external icon next to it). IsExternal bool }
Defines a link that is displayed on the header for navigation.
Click to show internal directories.
Click to hide internal directories.