summaryrefslogtreecommitdiffstats
path: root/hugolib/permalinks.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/permalinks.go')
-rw-r--r--hugolib/permalinks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/permalinks.go b/hugolib/permalinks.go
index f6f2bd80d..9a194bd73 100644
--- a/hugolib/permalinks.go
+++ b/hugolib/permalinks.go
@@ -135,7 +135,7 @@ func pageToPermalinkDate(p *Page, dateField string) (string, error) {
case "monthname":
return p.Date.Month().String(), nil
case "day":
- return fmt.Sprintf("%02d", int(p.Date.Day())), nil
+ return fmt.Sprintf("%02d", p.Date.Day()), nil
case "weekday":
return strconv.Itoa(int(p.Date.Weekday())), nil
case "weekdayname":