🏷️ Remake IsHome property of Page as method
This commit is contained in:
parent
753e22ad9a
commit
2215cc751b
|
@ -10,5 +10,8 @@ type Page struct {
|
|||
Title string
|
||||
Content []byte
|
||||
Resources Resources
|
||||
IsHome bool
|
||||
}
|
||||
|
||||
func (p Page) IsHome() bool {
|
||||
return p.File.dir == "./" && p.File.translationBaseName == "index"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue