mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Make site.BaseURL and $pager.URL a string
Was template.URL.
This commit is contained in:
@@ -16,7 +16,6 @@ package page
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"math"
|
||||
"reflect"
|
||||
|
||||
@@ -71,8 +70,8 @@ func (p *Pager) PageNumber() int {
|
||||
}
|
||||
|
||||
// URL returns the URL to the current page.
|
||||
func (p *Pager) URL() template.HTML {
|
||||
return template.HTML(p.paginationURLFactory(p.PageNumber()))
|
||||
func (p *Pager) URL() string {
|
||||
return p.paginationURLFactory(p.PageNumber())
|
||||
}
|
||||
|
||||
// Pages returns the Pages on this page.
|
||||
|
Reference in New Issue
Block a user