Make site.BaseURL and $pager.URL a string

Was template.URL.
This commit is contained in:
Bjørn Erik Pedersen
2023-10-30 09:07:03 +01:00
parent acf01bfb78
commit b6a7568131
4 changed files with 11 additions and 11 deletions

View File

@@ -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.