geonet_header_basic

package
v0.0.0-...-e45c2a7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 3 Imported by: 2

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 {
	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 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.

Jump to

Keyboard shortcuts

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