summaryrefslogtreecommitdiffstats
path: root/hugolib/page.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index 5de976bd4..c29590802 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -38,6 +38,7 @@ import (
"unicode/utf8"
bp "github.com/gohugoio/hugo/bufferpool"
+ "github.com/gohugoio/hugo/compare"
"github.com/gohugoio/hugo/source"
"github.com/spf13/cast"
)
@@ -49,6 +50,10 @@ var (
allKindsInPages = []string{KindPage, KindHome, KindSection, KindTaxonomy, KindTaxonomyTerm}
allKinds = append(allKindsInPages, []string{kindRSS, kindSitemap, kindRobotsTXT, kind404}...)
+
+ // Assert that it implements the Eqer interface.
+ _ compare.Eqer = (*Page)(nil)
+ _ compare.Eqer = (*PageOutput)(nil)
)
const (