geonet_header

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReturnGeoNetHeader

func ReturnGeoNetHeader(config HeaderConfig) (template.HTML, error)

ReturnGeoNetHeader returns HTML for the main GeoNet header that can be inserted into a webpage. The config is used to set certain properties.

Types

type Active

type Active struct {
	Home, Earthquake, Landslide, Tsunami, Volcano, DataDiscovery, DataTypes, DataAccess bool
}

type HeaderConfig

type HeaderConfig struct {
	// The origin to be used at the beginning of the links in the header.
	// If nil, relative links are used.
	Origin string
	// A struct that defines which dropdown menu is currently "active", ie: the
	// dropdown menu that the current page belongs to.
	Active
	// The HTML for the GeoNet logo and home/news icons. These should not be changed.
	HomeIcon   template.HTML
	NewsIcon   template.HTML
}

Jump to

Keyboard shortcuts

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