geonet_footer

package
v0.0.0-...-5750ac9 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReturnGeoNetFooter

func ReturnGeoNetFooter(config FooterConfig) (template.HTML, error)

ReturnGeoNetFooter returns HTML for the main GeoNet footer that can be inserted into a webpage.

Types

type FooterConfig

type FooterConfig struct {
	// Whether to use relative links in footer. If false, uses www.geonet.org.nz.
	UseRelativeLinks bool
	// The origin to be used at the beginning of GeoNet links in the footer.
	// Cannot be changed.
	Origin string
	// The GeoNet, ESNZ, and NHC logos are fixed and cannot be changed.
	EsnzLogoStacked template.HTML
	NhcLogoStacked  template.HTML
	// URLs for extra logos to be added to the footer can be passed in.
	ExtraLogos []FooterLogo
	// Set whether footer is a stripped down, basic version.
	Basic bool
}
type FooterLogo struct {
	// The URL to link to when the image is clicked.
	URL string
	// The URL to the logo image.
	LogoURL string
	// The alt text to add to the logo image.
	Alt string
}

Defines a logo to be displayed in the footer along with the default logos.

Jump to

Keyboard shortcuts

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