Adding IsNode & IsPage functions to Page & Node

This commit is contained in:
spf13
2014-08-19 21:27:13 -04:00
parent b10dea2955
commit aae1ff3c92
3 changed files with 20 additions and 0 deletions

View File

@@ -47,6 +47,14 @@ func (n *Node) RSSlink() template.HTML {
return n.RSSLink
}
func (n *Node) IsNode() bool {
return true
}
func (n *Node) IsPage() bool {
return !n.IsNode()
}
type UrlPath struct {
Url string
Permalink template.HTML