mirror of
https://github.com/gohugoio/hugo.git
synced 2025-05-01 09:37:40 +00:00
Fix datePublished to publishdate
This commit is contained in:
parent
bee9718ac1
commit
84f4c21d4a
3 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ func AddCommands() {
|
||||||
//Initializes flags
|
//Initializes flags
|
||||||
func init() {
|
func init() {
|
||||||
HugoCmd.PersistentFlags().BoolVarP(&Draft, "buildDrafts", "D", false, "include content marked as draft")
|
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(&DisableRSS, "disableRSS", false, "Do not build RSS files")
|
||||||
HugoCmd.PersistentFlags().BoolVar(&DisableSitemap, "disableSitemap", false, "Do not build Sitemap file")
|
HugoCmd.PersistentFlags().BoolVar(&DisableSitemap, "disableSitemap", false, "Do not build Sitemap file")
|
||||||
HugoCmd.PersistentFlags().StringVarP(&Source, "source", "s", "", "filesystem path to read files relative from")
|
HugoCmd.PersistentFlags().StringVarP(&Source, "source", "s", "", "filesystem path to read files relative from")
|
||||||
|
|
|
@ -77,7 +77,7 @@ Following is a list of Hugo-defined variables that you can configure and their c
|
||||||
baseURL: ""
|
baseURL: ""
|
||||||
# include content marked as draft
|
# include content marked as draft
|
||||||
buildDrafts: false
|
buildDrafts: false
|
||||||
# include content with datePublished in the future
|
# include content with publishdate in the future
|
||||||
buildFuture: false
|
buildFuture: false
|
||||||
canonifyURLs: false
|
canonifyURLs: false
|
||||||
# config file (default is path/config.yaml|json|toml)
|
# config file (default is path/config.yaml|json|toml)
|
||||||
|
|
|
@ -39,7 +39,7 @@ Flags:
|
||||||
Global Flags:
|
Global Flags:
|
||||||
-b, --baseUrl="": hostname (and path) to the root eg. http://spf13.com/
|
-b, --baseUrl="": hostname (and path) to the root eg. http://spf13.com/
|
||||||
-D, --buildDrafts=false: include content marked as draft
|
-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/
|
--cacheDir="": filesystem path to cache directory. Defaults: $TMPDIR/hugo_cache/
|
||||||
--config="": config file (default is path/config.yaml|json|toml)
|
--config="": config file (default is path/config.yaml|json|toml)
|
||||||
-d, --destination="": filesystem path to write files to
|
-d, --destination="": filesystem path to write files to
|
||||||
|
|
Loading…
Add table
Reference in a new issue