Skip to content

Commit

Permalink
commands: Update Jekyll post-import output
Browse files Browse the repository at this point in the history
Update CLI output after a successful Jekyll import to
suggest a maintained theme and include clearer steps
to running a server locally.

Fixes #10715

Co-authored-by: Joe Mooring <joe@mooring.com>
  • Loading branch information
brianknight10 and jmooring committed Jun 21, 2023
1 parent 9418182 commit 49336bf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions commands/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,12 @@ func (c *importCommand) importFromJekyll(args []string) error {
}

c.r.Println("Congratulations!", fileCount, "post(s) imported!")
c.r.Println("Now, start Hugo by yourself:\n" +
"$ git clone https://github.com/spf13/herring-cove.git " + args[1] + "/themes/herring-cove")
c.r.Println("$ cd " + args[1] + "\n$ hugo server --theme=herring-cove")
c.r.Println("Now, start Hugo by yourself:\n")
c.r.Println("cd " + args[1])
c.r.Println("git init")
c.r.Println("git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke themes/ananke")
c.r.Println("echo \"theme = 'ananke'\" > hugo.toml")
c.r.Println("hugo server")

return nil
}
Expand Down

0 comments on commit 49336bf

Please sign in to comment.