diff options
Diffstat (limited to 'hugolib/permalinks.go')
-rw-r--r-- | hugolib/permalinks.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/permalinks.go b/hugolib/permalinks.go index 642de8378..fdae2b856 100644 --- a/hugolib/permalinks.go +++ b/hugolib/permalinks.go @@ -139,14 +139,14 @@ func pageToPermalinkDate(p *Page, dateField string) (string, error) { func pageToPermalinkTitle(p *Page, _ string) (string, error) { // Page contains Node which has Title // (also contains UrlPath which has Slug, sometimes) - return helpers.Urlize(p.Title), nil + return helpers.URLize(p.Title), nil } // pageToPermalinkFilename returns the URL-safe form of the filename func pageToPermalinkFilename(p *Page, _ string) (string, error) { //var extension = p.Source.Ext //var name = p.Source.Path()[0 : len(p.Source.Path())-len(extension)] - return helpers.Urlize(p.Source.BaseFileName()), nil + return helpers.URLize(p.Source.BaseFileName()), nil } // if the page has a slug, return the slug, else return the title |