~gsthnz/public-inbox

gssg use forward slashes even on platforms with `\` sep v1 PROPOSED

Christopher Wilson: 1
 gssg use forward slashes even on platforms with `\` sep

 1 files changed, 2 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~gsthnz/public-inbox/patches/41465/mbox | git am -3
Learn more about email & git

[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