Skip to content

Commit be7247d

Browse files
committed
fix: Prev/Next URL is wrongly escaped on Windows in a post list filtered by tags
This fixes #86 .
1 parent eb025fe commit be7247d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

render.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ func RenderArticleList(rootPath string, articles Collections, tagName string) {
179179
"Develop": globalConfig.Develop,
180180
"Page": i + 1,
181181
"Total": page,
182-
"Prev": prev,
183-
"Next": next,
182+
"Prev": template.URL(filepath.ToSlash(prev)),
183+
"Next": template.URL(filepath.ToSlash(next)),
184184
"TagName": tagName,
185185
"TagCount": len(articles),
186186
}

0 commit comments

Comments
 (0)