geonet_footer

package
v0.0.0-...-2147a1b Latest Latest
Warning

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

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

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 {
	// The GeoNet, GNS, and EQC logos are fixed and cannot be changed.
	EqcLogoStacked 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
}

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