~gsthnz/gssg

fc755f281d750d0b022689d58d0f32e6799dfef8 — Christopher Wilson 1 year, 6 months ago a842c01 master
gssg use forward slashes even on platforms with `\` sep
1 files changed, 2 insertions(+), 1 deletions(-)

M page.go
M page.go => page.go +2 -1
@@ 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)