shithub: hugo

Download patch

ref: 84f4c21d4a0a86f4e82c5bdd7de6fc96997dcc30
parent: bee9718ac16ee940eb2a0c7feb28507c134a78bf
author: Andre R <[email protected]>
date: Sun May 10 10:38:05 EDT 2015

Fix datePublished to publishdate

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -81,7 +81,7 @@
 //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")
--- a/docs/content/overview/configuration.md
+++ b/docs/content/overview/configuration.md
@@ -77,7 +77,7 @@
     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)
--- a/docs/content/overview/usage.md
+++ b/docs/content/overview/usage.md
@@ -39,7 +39,7 @@
 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