You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
close #14
This commit is contained in:
@@ -12,8 +12,16 @@ import (
|
||||
"unicode"
|
||||
|
||||
"github.com/hacdias/caddy-hugo/assets"
|
||||
"github.com/hacdias/caddy-hugo/config"
|
||||
"github.com/spf13/hugo/commands"
|
||||
)
|
||||
|
||||
// RunHugo is used to run hugo
|
||||
func RunHugo(c *config.Config) {
|
||||
commands.HugoCmd.ParseFlags(c.Flags)
|
||||
commands.HugoCmd.Run(commands.HugoCmd, make([]string, 0))
|
||||
}
|
||||
|
||||
// CopyFile is used to copy a file
|
||||
func CopyFile(old, new string) error {
|
||||
// Open the file and create a new one
|
||||
|
||||
Reference in New Issue
Block a user