Fix datePublished to publishdate

This commit is contained in:
Andre R 2015-05-10 14:38:05 -04:00 committed by bep
parent bee9718ac1
commit 84f4c21d4a
3 changed files with 3 additions and 3 deletions

View file

@ -81,7 +81,7 @@ func AddCommands() {
//Initializes flags
func init() {
HugoCmd.PersistentFlags().BoolVarP(&Draft, "buildDrafts", "D", false, "include content marked as draft")
HugoCmd.PersistentFlags().BoolVarP(&Future, "buildFuture", "F", false, "include content with datePublished in the future")
HugoCmd.PersistentFlags().BoolVarP(&Future, "buildFuture", "F", false, "include content with publishdate in the future")
HugoCmd.PersistentFlags().BoolVar(&DisableRSS, "disableRSS", false, "Do not build RSS files")
HugoCmd.PersistentFlags().BoolVar(&DisableSitemap, "disableSitemap", false, "Do not build Sitemap file")
HugoCmd.PersistentFlags().StringVarP(&Source, "source", "s", "", "filesystem path to read files relative from")

View file

@ -77,7 +77,7 @@ Following is a list of Hugo-defined variables that you can configure and their c
baseURL: ""
# include content marked as draft
buildDrafts: false
# include content with datePublished in the future
# include content with publishdate in the future
buildFuture: false
canonifyURLs: false
# config file (default is path/config.yaml|json|toml)

View file

@ -39,7 +39,7 @@ Flags:
Global Flags:
-b, --baseUrl="": hostname (and path) to the root eg. http://spf13.com/
-D, --buildDrafts=false: include content marked as draft
-F, --buildFuture=false: include content with datePublished in the future
-F, --buildFuture=false: include content with publishdate in the future
--cacheDir="": filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
--config="": config file (default is path/config.yaml|json|toml)
-d, --destination="": filesystem path to write files to