mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-10-01 01:06:14 -04:00
54744ba694
`.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. |
||
---|---|---|
.. | ||
templates | ||
anchored_headings.html | ||
author.html | ||
breadcrumbs.html | ||
comments.html | ||
cover.html | ||
edit_post.html | ||
extend_footer.html | ||
extend_head.html | ||
footer.html | ||
head.html | ||
header.html | ||
home_info.html | ||
index_profile.html | ||
post_meta.html | ||
share_icons.html | ||
social_icons.html | ||
svg.html | ||
toc.html | ||
translation_list.html |