1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Add IsHome

To determine if a page is the "Home Page" has inspired lots of creativity in the template department.

This commit makes it simpler: IsHome will tell the truth.
This commit is contained in:
bep
2015-05-28 03:19:59 +02:00
parent be6dfcc495
commit be535832f7
4 changed files with 10 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ type Node struct {
Lastmod time.Time
Sitemap Sitemap
URLPath
IsHome bool
paginator *Pager
paginatorInit sync.Once
scratch *Scratch