Gopher

Site

Site is Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Language  

() → langs.Language

Returns the Language configured for this Site.

RegularPages  

() → Pages

Returns all the regular Pages in this Site.

Pages  

() → Pages

Returns all Pages in this Site.

Home  

() → Page

A shortcut to the home page.

IsServer  

() → bool

Returns true if we’re running in a server.

ServerPort  

() → int

Returns the server port.

Title  

() → string

Returns the configured title for this Site.

Sites  

() → Sites

Returns all Sites for all languages.

Current  

() → Site

Returns Site currently rendering.

Hugo  

() → Info

Returns a struct with some information about the build.

BaseURL  

() → URL

Returns the BaseURL for this Site.

Taxonomies  

() → any

Retuns a taxonomy map.

LastChange  

() → time.Time

Returns the last modification date of the content.

Menus  

() → Menus

Returns the Menus for this site.

Params  

() → Params

Returns the Params configured for this site.

Data  

() → map[string]any

Returns a map of all the data inside /data.