hugo-WonderMod/layouts
Syphdias 54744ba694
Fix path in editPost URL for Windows (#333)
`.File.Path` is OS dependant and uses `\` as directory separator. This leads to
cases where posts get the wrong URL, if in a sub folder, e.g.
`content/posts/folder\post.md`.

One idea was to replace `\` with `/` this however breaks valid files (on Unix
systems) which include `\` in the file name.
According to the docs [`path.Join`](layouts/partials/edit_post.html) is OS
unaware and converts to a Unix-like path.

> Note: All path elements on Windows are converted to slash ('/') separators.

PS: It looks like hugo also uses this internally to build URLs.
PPS: Solution was discussed in #278.
2021-03-28 19:39:22 +05:30
..
_default Imrprovements to RSS (#319) 2021-03-25 14:50:53 +05:30
partials Fix path in editPost URL for Windows (#333) 2021-03-28 19:39:22 +05:30
shortcodes Add support for rtl and ltr shortcodes (#293) 2021-03-22 16:47:40 +05:30
404.html update 404 to match baseof 2020-07-22 17:29:51 +05:30
robots.txt layouts: use hugo.IsProduction 2020-12-13 20:19:25 +05:30