diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-25 19:21:19 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 15:43:56 +0200 |
commit | 24c1770288803bd7a344f5903dd4f03cccc6a8f0 (patch) | |
tree | c70d87dd60b71976f5e645384be420209172434c /helpers/path.go | |
parent | b7ed67d425524717d3cafdde9a5ce3cb92defdc6 (diff) |
hugolib: Revise paginator alias path handling
Diffstat (limited to 'helpers/path.go')
-rw-r--r-- | helpers/path.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/helpers/path.go b/helpers/path.go index 14d98e2c0..554e9977d 100644 --- a/helpers/path.go +++ b/helpers/path.go @@ -358,23 +358,6 @@ func GetRelativePath(path, base string) (final string, err error) { return name, nil } -// PaginateAliasPath creates a path used to access the aliases in the paginator. -func (p *PathSpec) PaginateAliasPath(base string, page int) string { - paginatePath := p.paginatePath - uglify := p.uglyURLs - var pth string - if base != "" { - pth = filepath.FromSlash(fmt.Sprintf("/%s/%s/%d", base, paginatePath, page)) - } else { - pth = filepath.FromSlash(fmt.Sprintf("/%s/%d", paginatePath, page)) - } - if uglify { - pth += ".html" - } - - return pth -} - // GuessSection returns the section given a source path. // A section is the part between the root slash and the second slash // or before the first slash. |