Open reuixiy opened 3 years ago
https://github.com/reuixiy/hugo-theme-meme/blob/e927542dbe1cb8329acfe475bcd77df2361118f8/layouts/partials/components/post-gitinfo.html#L42-L50
So in post-gitinfo.html we use .Path to combine editURL, it works well on Linux, but not working on Windows.
.Path
editURL
On Windows, .Path like foo/bar will be "converted" to foo\bar, which produces a wrong URL.
foo/bar
foo\bar
Also, we should check all usages of .Path and .Dir in MemE.
.Dir
Notes:
https://github.com/reuixiy/hugo-theme-meme/blob/e927542dbe1cb8329acfe475bcd77df2361118f8/layouts/partials/components/post-gitinfo.html#L42-L50
So in post-gitinfo.html we use
.Path
to combineeditURL
, it works well on Linux, but not working on Windows.On Windows,
.Path
likefoo/bar
will be "converted" tofoo\bar
, which produces a wrong URL.Also, we should check all usages of
.Path
and.Dir
in MemE.