HUGO
News Docs Themes Community GitHub

Home

Returns the home Page object for the given site.

Syntax

SITE.Home

Returns

page.Page

This method is useful for obtaining a link to the home page.

Site configuration:

baseURL: https://example.org/docs/
baseURL = 'https://example.org/docs/'
{
   "baseURL": "https://example.org/docs/"
}

Template:

{{ .Site.Home.Permalink }} → https://example.org/docs/ 
{{ .Site.Home.RelPermalink }} → /docs/