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:
Diffstat (limited to 'helpers/pathspec.go')
-rw-r--r--helpers/pathspec.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/helpers/pathspec.go b/helpers/pathspec.go
index 4c578cdf7..d95dcde7a 100644
--- a/helpers/pathspec.go
+++ b/helpers/pathspec.go
@@ -35,6 +35,7 @@ type PathSpec struct {
multilingual bool
}
+// NewPathSpecFromConfig creats a new PathSpec from the given ConfigProvider.
func NewPathSpecFromConfig(config ConfigProvider) *PathSpec {
return &PathSpec{
disablePathToLower: config.GetBool("disablePathToLower"),
@@ -49,6 +50,7 @@ func NewPathSpecFromConfig(config ConfigProvider) *PathSpec {
}
}
+// PaginatePath returns the configured root path used for paginator pages.
func (p *PathSpec) PaginatePath() string {
return p.paginatePath
}