Added the hugoExtended
This commit is contained in:
parent
e635243b54
commit
1f5cdffd0b
6 changed files with 41 additions and 12 deletions
6
main.go
6
main.go
|
|
@ -92,6 +92,11 @@ func main() {
|
|||
EnvVar: "PLUGIN_HUGO_VERSION",
|
||||
Value: "",
|
||||
},
|
||||
cli.BoolFlag{
|
||||
Name: "hugoExtended",
|
||||
Usage: "If the hugo extended package should be used",
|
||||
EnvVar: "PLUGIN_HUGO_EXTENDED",
|
||||
},
|
||||
}
|
||||
if err := app.Run(os.Args); err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
@ -102,6 +107,7 @@ func run(c *cli.Context) error {
|
|||
plugin := Plugin{
|
||||
Config: Config{
|
||||
HugoVersion: c.String("hugoVersion"),
|
||||
HugoExtended: c.Bool("hugoExtended"),
|
||||
BuildDrafts: c.Bool("buildDrafts"),
|
||||
BuildExpired: c.Bool("buildExpired"),
|
||||
BuildFuture: c.Bool("buildFuture"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue