Hopefully fix #

This commit is contained in:
Henrique Dias
2016-11-14 20:09:30 +00:00
parent e03fa7eb0c
commit 5cb16ed8ae
6 changed files with 26 additions and 15 deletions

View File

@@ -67,10 +67,10 @@ func (i Info) BreadcrumbMap() map[string]string {
func (i Info) PreviousLink() string {
path := strings.TrimSuffix(i.Path, "/")
path = strings.TrimPrefix(path, "/")
path = i.Config.AbsoluteURL + "/" + path
path = i.Config.AbsoluteURL() + "/" + path
path = path[0 : len(path)-len(i.Name)]
if len(path) < len(i.Config.AbsoluteURL+"/") {
if len(path) < len(i.Config.AbsoluteURL()+"/") {
return ""
}