[PATCH] gssg use forward slashes even on platforms with `\` sep
Export this patch
---
page.go | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/page.go b/page.go
index c16ae3e..e39a59a 100644
--- a/page.go
+++ b/page.go
@@ -49,7 +49,8 @@ func parsePage(filename string) *Page {
p.Content = string(b)
p.rawDirectory, p.rawFilename = filepath.Split(filename)
p.Filename = p.rawFilename
- p.URLPath, _ = filepath.Rel(config.SourceDir, filename)
+ localPath, _ := filepath.Rel(config.SourceDir, filename)
+ p.URLPath = filepath.ToSlash(localPath)
p.Permalink = fetchPermalink(p.URLPath)
p.Title = fetchTitle(b)
p.Date = fetchDate(filename, b)
--
2.37.1.windows.1
Hi! Thanks for the patch!
To git.sr.ht:~gsthnz/gssg
a842c01..fc755f2 master -> maste