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

@@ -85,6 +85,14 @@ func (p *Page) Plain() string {
return p.plain
}
func (p *Page) IsNode() bool {
return false
}
func (p *Page) IsPage() bool {
return true
}
func (p *Page) setSummary() {
if bytes.Contains(p.rawContent, summaryDivider) {
// If user defines split: