mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
converted path 2 filepath
This commit is contained in:
@@ -15,7 +15,7 @@ package commands
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/spf13/cast"
|
||||
@@ -133,7 +133,7 @@ func convertContents(mark rune) (err error) {
|
||||
page.SetSourceMetaData(metadata, mark)
|
||||
|
||||
if OutputDir != "" {
|
||||
page.SaveSourceAs(path.Join(OutputDir, page.FullFilePath()))
|
||||
page.SaveSourceAs(filepath.Join(OutputDir, page.FullFilePath()))
|
||||
} else {
|
||||
if Unsafe {
|
||||
page.SaveSource()
|
||||
|
Reference in New Issue
Block a user