mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 14:40:43 +03:00
parent
e614d8a57c
commit
1157fef859
4 changed files with 61 additions and 67 deletions
|
@ -116,6 +116,7 @@ var serverPorts []int
|
|||
|
||||
func server(cmd *cobra.Command, args []string) error {
|
||||
// If a Destination is provided via flag write to disk
|
||||
destination, _ := cmd.Flags().GetString("destination")
|
||||
if destination != "" {
|
||||
renderToDisk = true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue