mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 22:17:28 +00:00
Make sure target destination has the right path separator.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
1 parent
3ab00e6e64
commit
53c9e890a2
1 file changed
+1
-1
+1
-1
@@ -40,7 +40,7 @@ func (fs *Filesystem) Publish(path string, r io.Reader) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (fs *Filesystem) Translate(src string) (dest string, err error) {
|
func (fs *Filesystem) Translate(src string) (dest string, err error) {
|
||||||
return filepath.Join(fs.PublishDir, src), nil
|
return filepath.Join(fs.PublishDir, filepath.FromSlash(src)), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fs *Filesystem) extension(ext string) string {
|
func (fs *Filesystem) extension(ext string) string {
|
||||||
|
|||||||
Reference in new issue
Block a user