Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Cottrell <mcottrell@gitlab.com>2022-02-18 23:28:02 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-24 00:43:19 +0300
commit06bac57ab0b6d83b5855132c92c762153dbde8bb (patch)
tree3145f9f69bc9d866314d3775035c58ea5a670d04 /hugolib/page.go
parentec8b767fa64af8c5b3d6510358699d28359fa7b6 (diff)
Add support for CODEOWNERS
Fixes #9474
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index 11b41e169..83b654cc0 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -148,6 +148,10 @@ func (p *pageState) GitInfo() *gitmap.GitInfo {
return p.gitInfo
}
+func (p *pageState) Codeowners() []string {
+ return p.codeowners
+}
+
// GetTerms gets the terms defined on this page in the given taxonomy.
// The pages returned will be ordered according to the front matter.
func (p *pageState) GetTerms(taxonomy string) page.Pages {