diff --git a/.gitignore b/.gitignore
index 190dfb1ab..b203a37cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/public
nohup.out
.DS_Store
+trace.out
\ No newline at end of file
diff --git a/config.toml b/config.toml
new file mode 100644
index 000000000..a7eb54cf8
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,412 @@
+baseURL = "https://gohugo.io/"
+paginate = 100
+defaultContentLanguage = "en"
+enableEmoji = true
+# Set the unicode character used for the "return" link in page footnotes.
+footnotereturnlinkcontents = "↩"
+languageCode = "en-us"
+metaDataFormat = "yaml"
+title = "Hugo"
+theme = "gohugoioTheme"
+
+googleAnalytics = "UA-7131036-4"
+
+pluralizeListTitles = false
+
+# We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below).
+disableAliases = true
+
+# Highlighting config (Pygments)
+# It is (currently) not in use, but you can do ```go in a content file if you want to.
+pygmentsCodeFences = true
+
+pygmentsOptions = ""
+# Use the Chroma stylesheet
+pygmentsUseClasses = true
+pygmentsUseClassic = false
+
+# See https://help.farbox.com/pygments.html
+pygmentsStyle = "trac"
+
+[outputs]
+home = [ "HTML", "RSS", "REDIR", "HEADERS" ]
+section = [ "HTML", "RSS"]
+
+[mediaTypes]
+[mediaTypes."text/netlify"]
+delimiter = ""
+
+[outputFormats]
+[outputFormats.REDIR]
+mediatype = "text/netlify"
+baseName = "_redirects"
+isPlainText = true
+notAlternative = true
+[outputFormats.HEADERS]
+mediatype = "text/netlify"
+baseName = "_headers"
+isPlainText = true
+notAlternative = true
+
+[related]
+
+threshold = 80
+includeNewer = true
+toLower = false
+
+[[related.indices]]
+name = "keywords"
+weight = 100
+[[related.indices]]
+name = "date"
+weight = 10
+pattern = "2006"
+
+[social]
+twitter = "GoHugoIO"
+
+#CUSTOM PARAMS
+[params]
+ description = "The world’s fastest framework for building websites"
+ ## Used for views in rendered HTML (i.e., rather than using the .Hugo variable)
+ release = "0.55.0-DEV"
+ ## Setting this to true will add a "noindex" to *EVERY* page on the site
+ removefromexternalsearch = false
+ ## Gh repo for site footer (include trailing slash)
+ ghrepo = "https://github.com/gohugoio/hugoDocs/"
+ ## GH Repo for filing a new issue
+ github_repo = "https://github.com/gohugoio/hugo/issues/new"
+ ### Edit content repo (set to automatically enter "edit" mode; this is good for "improve this page" links)
+ ghdocsrepo = "https://github.com/gohugoio/hugoDocs/tree/master/docs"
+ ## Gitter URL
+ gitter = "https://gitter.im/spf13/hugo"
+ ## Discuss Forum URL
+ forum = "https://discourse.gohugo.io/"
+ ## Google Tag Manager
+ gtmid = ""
+
+ # First one is picked as the Twitter card image if not set on page.
+ images = ["images/gohugoio-card.png"]
+
+ flex_box_interior_classes = "flex-auto w-100 w-40-l mr3 mb3 bg-white ba b--moon-gray nested-copy-line-height"
+
+ #sidebar_direction = "sidebar_left"
+
+# MARKDOWN
+## Configuration for BlackFriday markdown parser: https://github.com/russross/blackfriday
+[blackfriday]
+ plainIDAnchors = true
+ # See https://github.com/gohugoio/hugo/issues/2424
+ hrefTargetBlank = false
+ angledQuotes = false
+ latexDashes = true
+
+[imaging]
+# See https://github.com/disintegration/imaging
+# CatmullRom is a sharp bicubic filter which should fit the docs site well with its many screenshots.
+# Note that you can also set this per image processing.
+resampleFilter = "CatmullRom"
+
+# Default JPEG quality setting. Default is 75.
+quality = 75
+
+anchor = "smart"
+
+
+## As of v0.20, all content files include a default "categories" value that's the same as the section. This was a cheap future-proofing method and should/could be changed accordingly.
+[taxonomies]
+ category = "categories"
+
+# High level items
+
+[[menu.docs]]
+ name = "About Hugo"
+ weight = 1
+ identifier = "about"
+ url = "/about/"
+
+[[menu.docs]]
+ name = "Getting Started"
+ weight = 5
+ identifier = "getting-started"
+ url = "/getting-started/"
+
+
+[[menu.docs]]
+ name = "Themes"
+ weight = 15
+ identifier = "themes"
+ post = "break"
+ url = "/themes/"
+
+# Core Menus
+
+[[menu.docs]]
+ name = "Content Management"
+ weight = 20
+ identifier = "content-management"
+ post = "expanded"
+ url = "/content-management/"
+
+[[menu.docs]]
+ name = "Templates"
+ weight = 25
+ identifier = "templates"
+
+ url = "/templates/"
+
+[[menu.docs]]
+ name = "Functions"
+ weight = 30
+ identifier = "functions"
+ url = "/functions/"
+
+[[menu.docs]]
+ name = "Variables"
+ weight = 35
+ identifier = "variables"
+ url = "/variables/"
+[[menu.docs]]
+ name = "Hugo Pipes"
+ weight = 36
+ identifier = "pipes"
+ url = "/hugo-pipes/"
+[[menu.docs]]
+ name = "CLI"
+ weight = 40
+ post = "break"
+ identifier = "commands"
+ url = "/commands/"
+
+
+
+# LOW LEVEL ITEMS
+
+
+[[menu.docs]]
+ name = "Troubleshooting"
+ weight = 60
+ identifier = "troubleshooting"
+ url = "/troubleshooting/"
+
+[[menu.docs]]
+ name = "Tools"
+ weight = 70
+ identifier = "tools"
+ url = "/tools/"
+
+[[menu.docs]]
+ name = "Hosting & Deployment"
+ weight = 80
+ identifier = "hosting-and-deployment"
+ url = "/hosting-and-deployment/"
+
+[[menu.docs]]
+ name = "Contribute"
+ weight = 100
+ post = "break"
+ identifier = "contribute"
+ url = "/contribute/"
+
+#[[menu.docs]]
+# name = "Tags"
+# weight = 120
+# identifier = "tags"
+# url = "/tags/"
+
+
+# [[menu.docs]]
+# name = "Categories"
+# weight = 140
+# identifier = "categories"
+# url = "/categories/"
+
+######## QUICKLINKS
+
+ [[menu.quicklinks]]
+ name = "Fundamentals"
+ weight = 1
+ identifier = "fundamentals"
+ url = "/tags/fundamentals/"
+
+
+
+
+######## GLOBAL ITEMS TO BE SHARED WITH THE HUGO SITES
+
+[[menu.global]]
+ name = "News"
+ weight = 1
+ identifier = "news"
+ url = "/news/"
+
+ [[menu.global]]
+ name = "Docs"
+ weight = 5
+ identifier = "docs"
+ url = "/documentation/"
+
+ [[menu.global]]
+ name = "Themes"
+ weight = 10
+ identifier = "themes"
+ url = "https://themes.gohugo.io/"
+
+ [[menu.global]]
+ name = "Showcase"
+ weight = 20
+ identifier = "showcase"
+ url = "/showcase/"
+
+ # Anything with a weight > 100 gets an external icon
+ [[menu.global]]
+ name = "Community"
+ weight = 150
+ icon = true
+ identifier = "community"
+ post = "external"
+ url = "https://discourse.gohugo.io/"
+
+
+ [[menu.global]]
+ name = "GitHub"
+ weight = 200
+ identifier = "github"
+ post = "external"
+ url = "https://github.com/gohugoio/hugo"
+
+### LANGUAGES ###
+
+[languages]
+ [languages.en]
+ contentDir = "content/en"
+ languageName = "English"
+ weight = 1
+ [languages.zh]
+ contentDir = "content/zh"
+ languageName = "中文"
+ weight = 2
+
+
+### LANGUAGE-SPECIFIC MENUS ###
+
+# Chinese menus
+
+[[languages.zh.menu.docs]]
+ name = "关于 Hugo"
+ weight = 1
+ identifier = "about"
+ url = "/zh/about/"
+
+[[languages.zh.menu.docs]]
+ name = "入门"
+ weight = 5
+ identifier = "getting-started"
+ url = "/zh/getting-started/"
+
+[[languages.zh.menu.docs]]
+ name = "主题"
+ weight = 15
+ identifier = "themes"
+ post = "break"
+ url = "/zh/themes/"
+
+# Core languages.zh.menus
+
+[[languages.zh.menu.docs]]
+ name = "内容管理"
+ weight = 20
+ identifier = "content-management"
+ post = "expanded"
+ url = "/zh/content-management/"
+
+[[languages.zh.menu.docs]]
+ name = "模板"
+ weight = 25
+ identifier = "templates"
+ url = "/zh/templates/"
+
+[[languages.zh.menu.docs]]
+ name = "函数"
+ weight = 30
+ identifier = "functions"
+ url = "/zh/functions/"
+
+[[languages.zh.menu.docs]]
+ name = "变量"
+ weight = 35
+ identifier = "variables"
+ url = "/zh/variables/"
+
+[[languages.zh.menu.docs]]
+ name = "CLI"
+ weight = 40
+ post = "break"
+ identifier = "commands"
+ url = "/commands/"
+
+# LOW LEVEL ITEMS
+[[languages.zh.menu.docs]]
+ name = "故障排除"
+ weight = 60
+ identifier = "troubleshooting"
+ url = "/zh/troubleshooting/"
+
+[[languages.zh.menu.docs]]
+ name = "工具"
+ weight = 70
+ identifier = "tools"
+ url = "/zh/tools/"
+
+[[languages.zh.menu.docs]]
+ name = "托管与部署"
+ weight = 80
+ identifier = "hosting-and-deployment"
+ url = "/zh/hosting-and-deployment/"
+
+[[languages.zh.menu.docs]]
+ name = "贡献"
+ weight = 100
+ post = "break"
+ identifier = "contribute"
+ url = "/zh/contribute/"
+
+[[languages.zh.menu.global]]
+ name = "新闻"
+ weight = 1
+ identifier = "news"
+ url = "/zh/news/"
+
+[[languages.zh.menu.global]]
+ name = "文档"
+ weight = 5
+ identifier = "docs"
+ url = "/zh/documentation/"
+
+[[languages.zh.menu.global]]
+ name = "主题"
+ weight = 10
+ identifier = "themes"
+ url = "https://themes.gohugo.io/"
+
+[[languages.zh.menu.global]]
+ name = "作品展示"
+ weight = 20
+ identifier = "showcase"
+ url = "/zh/showcase/"
+
+# Anything with a weight > 100 gets an external icon
+[[languages.zh.menu.global]]
+ name = "社区"
+ weight = 150
+ icon = true
+ identifier = "community"
+ post = "external"
+ url = "https://discourse.gohugo.io/"
+
+[[languages.zh.menu.global]]
+ name = "GitHub"
+ weight = 200
+ identifier = "github"
+ post = "external"
+ url = "https://github.com/gohugoio/hugo"
diff --git a/content/en/commands/hugo.md b/content/en/commands/hugo.md
index 70cb53c29..9ef8b3a04 100644
--- a/content/en/commands/hugo.md
+++ b/content/en/commands/hugo.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo"
slug: hugo
url: /commands/hugo/
@@ -49,14 +49,15 @@ hugo [flags]
--minify minify any supported output format (HTML, XML etc.)
--noChmod don't sync permission mode of files
--noTimes don't sync modification time of files
+ --path-warnings print warnings on duplicate target paths etc.
--quiet build in quiet mode
--renderToMemory render to memory (only useful for benchmark testing)
-s, --source string filesystem path to read files relative from
- --stepAnalysis display memory and timing of different steps of the program
--templateMetrics display metrics about template executions
--templateMetricsHints calculate some improvement hints when combined with --templateMetrics
-t, --theme strings themes to use (located in /themes/THEMENAME/)
--themesDir string filesystem path to themes directory
+ --trace file write trace to file (not useful in general)
-v, --verbose verbose output
--verboseLog verbose logging
-w, --watch watch filesystem for changes and recreate as needed
@@ -75,4 +76,4 @@ hugo [flags]
* [hugo server](/commands/hugo_server/) - A high performance webserver
* [hugo version](/commands/hugo_version/) - Print the version number of Hugo
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_check.md b/content/en/commands/hugo_check.md
index 4e649fb56..d4b1d56e2 100644
--- a/content/en/commands/hugo_check.md
+++ b/content/en/commands/hugo_check.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo check"
slug: hugo_check
url: /commands/hugo_check/
@@ -36,4 +36,4 @@ Contains some verification checks
* [hugo](/commands/hugo/) - hugo builds your site
* [hugo check ulimit](/commands/hugo_check_ulimit/) - Check system ulimit settings
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_check_ulimit.md b/content/en/commands/hugo_check_ulimit.md
index 185ef310f..c7be29efa 100644
--- a/content/en/commands/hugo_check_ulimit.md
+++ b/content/en/commands/hugo_check_ulimit.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo check ulimit"
slug: hugo_check_ulimit
url: /commands/hugo_check_ulimit/
@@ -40,4 +40,4 @@ hugo check ulimit [flags]
* [hugo check](/commands/hugo_check/) - Contains some verification checks
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_config.md b/content/en/commands/hugo_config.md
index c488cc7e0..5236b5fac 100644
--- a/content/en/commands/hugo_config.md
+++ b/content/en/commands/hugo_config.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo config"
slug: hugo_config
url: /commands/hugo_config/
@@ -40,4 +40,4 @@ hugo config [flags]
* [hugo](/commands/hugo/) - hugo builds your site
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_convert.md b/content/en/commands/hugo_convert.md
index f04338066..41d45dbb2 100644
--- a/content/en/commands/hugo_convert.md
+++ b/content/en/commands/hugo_convert.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo convert"
slug: hugo_convert
url: /commands/hugo_convert/
@@ -10,12 +10,10 @@ Convert your content to different formats
### Synopsis
-Convert your content files (front matter) to different formats.
+Convert your content (e.g. front matter) to different formats.
See convert's subcommands toJSON, toTOML and toYAML for more information.
-**Please Note:** This will convert front matter only. It does not convert theme and configuration files (e.g. config.toml, theme.toml). Those files will need to be manually changed to your preference.
-
### Options
```
@@ -45,4 +43,4 @@ See convert's subcommands toJSON, toTOML and toYAML for more information.
* [hugo convert toTOML](/commands/hugo_convert_totoml/) - Convert front matter to TOML
* [hugo convert toYAML](/commands/hugo_convert_toyaml/) - Convert front matter to YAML
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_convert_toJSON.md b/content/en/commands/hugo_convert_toJSON.md
index a663177d7..7f613c822 100644
--- a/content/en/commands/hugo_convert_toJSON.md
+++ b/content/en/commands/hugo_convert_toJSON.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo convert toJSON"
slug: hugo_convert_toJSON
url: /commands/hugo_convert_tojson/
@@ -43,4 +43,4 @@ hugo convert toJSON [flags]
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_convert_toTOML.md b/content/en/commands/hugo_convert_toTOML.md
index 357376fcb..491c269f7 100644
--- a/content/en/commands/hugo_convert_toTOML.md
+++ b/content/en/commands/hugo_convert_toTOML.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo convert toTOML"
slug: hugo_convert_toTOML
url: /commands/hugo_convert_totoml/
@@ -43,4 +43,4 @@ hugo convert toTOML [flags]
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_convert_toYAML.md b/content/en/commands/hugo_convert_toYAML.md
index c5352a719..e5807853e 100644
--- a/content/en/commands/hugo_convert_toYAML.md
+++ b/content/en/commands/hugo_convert_toYAML.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo convert toYAML"
slug: hugo_convert_toYAML
url: /commands/hugo_convert_toyaml/
@@ -43,4 +43,4 @@ hugo convert toYAML [flags]
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_env.md b/content/en/commands/hugo_env.md
index c801f1ae3..87ad8c4e7 100644
--- a/content/en/commands/hugo_env.md
+++ b/content/en/commands/hugo_env.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo env"
slug: hugo_env
url: /commands/hugo_env/
@@ -39,4 +39,4 @@ hugo env [flags]
* [hugo](/commands/hugo/) - hugo builds your site
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_gen.md b/content/en/commands/hugo_gen.md
index 364187d47..511bb7b28 100644
--- a/content/en/commands/hugo_gen.md
+++ b/content/en/commands/hugo_gen.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo gen"
slug: hugo_gen
url: /commands/hugo_gen/
@@ -39,4 +39,4 @@ A collection of several useful generators.
* [hugo gen doc](/commands/hugo_gen_doc/) - Generate Markdown documentation for the Hugo CLI.
* [hugo gen man](/commands/hugo_gen_man/) - Generate man pages for the Hugo CLI
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_gen_autocomplete.md b/content/en/commands/hugo_gen_autocomplete.md
index 385b027c5..641d0238b 100644
--- a/content/en/commands/hugo_gen_autocomplete.md
+++ b/content/en/commands/hugo_gen_autocomplete.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo gen autocomplete"
slug: hugo_gen_autocomplete
url: /commands/hugo_gen_autocomplete/
@@ -57,4 +57,4 @@ hugo gen autocomplete [flags]
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_gen_chromastyles.md b/content/en/commands/hugo_gen_chromastyles.md
index b939b30f7..461860ac3 100644
--- a/content/en/commands/hugo_gen_chromastyles.md
+++ b/content/en/commands/hugo_gen_chromastyles.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo gen chromastyles"
slug: hugo_gen_chromastyles
url: /commands/hugo_gen_chromastyles/
@@ -44,4 +44,4 @@ hugo gen chromastyles [flags]
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_gen_doc.md b/content/en/commands/hugo_gen_doc.md
index 8c8516850..7158ce9fd 100644
--- a/content/en/commands/hugo_gen_doc.md
+++ b/content/en/commands/hugo_gen_doc.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo gen doc"
slug: hugo_gen_doc
url: /commands/hugo_gen_doc/
@@ -46,4 +46,4 @@ hugo gen doc [flags]
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_gen_man.md b/content/en/commands/hugo_gen_man.md
index bbe87178a..45b1fcefe 100644
--- a/content/en/commands/hugo_gen_man.md
+++ b/content/en/commands/hugo_gen_man.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo gen man"
slug: hugo_gen_man
url: /commands/hugo_gen_man/
@@ -42,4 +42,4 @@ hugo gen man [flags]
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_import.md b/content/en/commands/hugo_import.md
index 473431836..b12b7f714 100644
--- a/content/en/commands/hugo_import.md
+++ b/content/en/commands/hugo_import.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo import"
slug: hugo_import
url: /commands/hugo_import/
@@ -38,4 +38,4 @@ Import requires a subcommand, e.g. `hugo import jekyll jekyll_root_path target_p
* [hugo](/commands/hugo/) - hugo builds your site
* [hugo import jekyll](/commands/hugo_import_jekyll/) - hugo import from Jekyll
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_import_jekyll.md b/content/en/commands/hugo_import_jekyll.md
index f78fcd135..d794d119d 100644
--- a/content/en/commands/hugo_import_jekyll.md
+++ b/content/en/commands/hugo_import_jekyll.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo import jekyll"
slug: hugo_import_jekyll
url: /commands/hugo_import_jekyll/
@@ -42,4 +42,4 @@ hugo import jekyll [flags]
* [hugo import](/commands/hugo_import/) - Import your site from others.
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_list.md b/content/en/commands/hugo_list.md
index de3cb7839..99caee1e8 100644
--- a/content/en/commands/hugo_list.md
+++ b/content/en/commands/hugo_list.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo list"
slug: hugo_list
url: /commands/hugo_list/
@@ -41,4 +41,4 @@ List requires a subcommand, e.g. `hugo list drafts`.
* [hugo list expired](/commands/hugo_list_expired/) - List all posts already expired
* [hugo list future](/commands/hugo_list_future/) - List all posts dated in the future
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_list_drafts.md b/content/en/commands/hugo_list_drafts.md
index aa65e787d..271a3ee5c 100644
--- a/content/en/commands/hugo_list_drafts.md
+++ b/content/en/commands/hugo_list_drafts.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo list drafts"
slug: hugo_list_drafts
url: /commands/hugo_list_drafts/
@@ -40,4 +40,4 @@ hugo list drafts [flags]
* [hugo list](/commands/hugo_list/) - Listing out various types of content
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_list_expired.md b/content/en/commands/hugo_list_expired.md
index 106e41df2..df273ff73 100644
--- a/content/en/commands/hugo_list_expired.md
+++ b/content/en/commands/hugo_list_expired.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo list expired"
slug: hugo_list_expired
url: /commands/hugo_list_expired/
@@ -41,4 +41,4 @@ hugo list expired [flags]
* [hugo list](/commands/hugo_list/) - Listing out various types of content
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_list_future.md b/content/en/commands/hugo_list_future.md
index 6e0c99857..4c559f2ba 100644
--- a/content/en/commands/hugo_list_future.md
+++ b/content/en/commands/hugo_list_future.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo list future"
slug: hugo_list_future
url: /commands/hugo_list_future/
@@ -41,4 +41,4 @@ hugo list future [flags]
* [hugo list](/commands/hugo_list/) - Listing out various types of content
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_new.md b/content/en/commands/hugo_new.md
index cce7f4ecb..8b31e42fb 100644
--- a/content/en/commands/hugo_new.md
+++ b/content/en/commands/hugo_new.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo new"
slug: hugo_new
url: /commands/hugo_new/
@@ -48,12 +48,13 @@ hugo new [path] [flags]
--minify minify any supported output format (HTML, XML etc.)
--noChmod don't sync permission mode of files
--noTimes don't sync modification time of files
+ --path-warnings print warnings on duplicate target paths etc.
-s, --source string filesystem path to read files relative from
- --stepAnalysis display memory and timing of different steps of the program
--templateMetrics display metrics about template executions
--templateMetricsHints calculate some improvement hints when combined with --templateMetrics
-t, --theme strings themes to use (located in /themes/THEMENAME/)
--themesDir string filesystem path to themes directory
+ --trace file write trace to file (not useful in general)
```
### Options inherited from parent commands
@@ -75,4 +76,4 @@ hugo new [path] [flags]
* [hugo new site](/commands/hugo_new_site/) - Create a new site (skeleton)
* [hugo new theme](/commands/hugo_new_theme/) - Create a new theme
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_new_site.md b/content/en/commands/hugo_new_site.md
index 4bb9cda50..babe7127a 100644
--- a/content/en/commands/hugo_new_site.md
+++ b/content/en/commands/hugo_new_site.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo new site"
slug: hugo_new_site
url: /commands/hugo_new_site/
@@ -44,4 +44,4 @@ hugo new site [path] [flags]
* [hugo new](/commands/hugo_new/) - Create new content for your site
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_new_theme.md b/content/en/commands/hugo_new_theme.md
index a49301928..284b5cd3e 100644
--- a/content/en/commands/hugo_new_theme.md
+++ b/content/en/commands/hugo_new_theme.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo new theme"
slug: hugo_new_theme
url: /commands/hugo_new_theme/
@@ -43,4 +43,4 @@ hugo new theme [name] [flags]
* [hugo new](/commands/hugo_new/) - Create new content for your site
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_server.md b/content/en/commands/hugo_server.md
index 501a5a99e..447482102 100644
--- a/content/en/commands/hugo_server.md
+++ b/content/en/commands/hugo_server.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo server"
slug: hugo_server
url: /commands/hugo_server/
@@ -60,14 +60,15 @@ hugo server [flags]
--noChmod don't sync permission mode of files
--noHTTPCache prevent HTTP caching
--noTimes don't sync modification time of files
+ --path-warnings print warnings on duplicate target paths etc.
-p, --port int port on which the server will listen (default 1313)
--renderToDisk render to Destination path (default is render to memory & serve from there)
-s, --source string filesystem path to read files relative from
- --stepAnalysis display memory and timing of different steps of the program
--templateMetrics display metrics about template executions
--templateMetricsHints calculate some improvement hints when combined with --templateMetrics
-t, --theme strings themes to use (located in /themes/THEMENAME/)
--themesDir string filesystem path to themes directory
+ --trace file write trace to file (not useful in general)
-w, --watch watch filesystem for changes and recreate as needed (default true)
```
@@ -88,4 +89,4 @@ hugo server [flags]
* [hugo](/commands/hugo/) - hugo builds your site
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/commands/hugo_version.md b/content/en/commands/hugo_version.md
index 1b3d9080b..cdc014610 100644
--- a/content/en/commands/hugo_version.md
+++ b/content/en/commands/hugo_version.md
@@ -1,5 +1,5 @@
---
-date: 2019-01-30
+date: 2019-03-26
title: "hugo version"
slug: hugo_version
url: /commands/hugo_version/
@@ -39,4 +39,4 @@ hugo version [flags]
* [hugo](/commands/hugo/) - hugo builds your site
-###### Auto generated by spf13/cobra on 30-Jan-2019
+###### Auto generated by spf13/cobra on 26-Mar-2019
diff --git a/content/en/content-management/front-matter.md b/content/en/content-management/front-matter.md
index 130160917..4a52b160c 100644
--- a/content/en/content-management/front-matter.md
+++ b/content/en/content-management/front-matter.md
@@ -111,6 +111,9 @@ series
slug
: appears as the tail of the output URL. A value specified in front matter will override the segment of the URL based on the filename.
+summary
+: text used when providing a summary of the article in the `.Summary` page variable; details available in the [content-summaries](/content-management/summaries/) section.
+
title
: the title for the content.
diff --git a/content/en/content-management/summaries.md b/content/en/content-management/summaries.md
index 63d64aa3c..dcbf5914d 100644
--- a/content/en/content-management/summaries.md
+++ b/content/en/content-management/summaries.md
@@ -23,6 +23,7 @@ With the use of the `.Summary` [page variable][pagevariables], Hugo generates su
* Automatic Summary Split
* Manual Summary Split
+* Front Matter Summary
It is natural to accompany the summary with links to the original content, and a common design pattern is to see this link in the form of a "Read More ..." button. See the `.RelPermalink`, `.Permalink`, and `.Truncated` [page variables][pagevariables].
@@ -60,6 +61,28 @@ Cons
Be careful to enter <!--more-->
exactly; i.e., all lowercase and with no whitespace.
{{% /warning %}}
+### Front Matter Summary
+
+You might want your summary to be something other than the text that starts the article. In this case you can provide a separate summary in the `summary` variable of the article front matter.
+
+Pros
+: Complete freedom of text independent of the content of the article. Markup can be used within the summary.
+
+Cons
+: Extra work for content authors as they need to write an entirely separate piece of text as the summary of the article.
+
+## Summary Selection Order
+
+Because there are multiple ways in which a summary can be specified it is useful to understand the order of selection Hugo follows when deciding on the text to be returned by `.Summary`. It is as follows:
+
+1. If there is a <!--more-->
summary divider present in the article the text up to the divider will be provided as per the manual summary split method
+2. If there is a `summary` variable in the article front matter the value of the variable will be provided as per the front matter summary method
+3. The text at the start of the article will be provided as per the automatic summary split method
+
+{{% warning "Competing selections" %}}
+Hugo uses the _first_ of the above steps that returns text. So if, for example, your article has both `summary` variable in its front matter and a <!--more-->
summary divider Hugo will use the manual summary split method.
+{{% /warning %}}
+
## Example: First 10 Articles with Summaries
You can show content summaries with the following code. You could use the following snippet, for example, in a [section template][].
diff --git a/content/en/content-management/urls.md b/content/en/content-management/urls.md
index 25bd09165..5ba9e758e 100644
--- a/content/en/content-management/urls.md
+++ b/content/en/content-management/urls.md
@@ -82,9 +82,13 @@ The following is a list of values that can be used in a `permalink` definition i
## Aliases
-For people migrating existing published content to Hugo, there's a good chance you need a mechanism to handle redirecting old URLs.
+Aliases can be used to create redirects to your page from other URLs.
-Luckily, redirects can be handled easily with **aliases** in Hugo.
+
+Aliases comes in two forms:
+
+1. Starting with a `/` meaning they are relative to the `BaseURL`, e.g. `/posts/my-blogpost/`
+2. They are relative to the `Page` they're defined in, e.g. `my-blogpost` or even something like `../blog/my-blogpost` (new in Hugo 0.55).
### Example: Aliases
diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md
index 5b310db15..4ef42465f 100644
--- a/content/en/getting-started/configuration.md
+++ b/content/en/getting-started/configuration.md
@@ -297,6 +297,11 @@ enableemoji: true
```
{{% /note %}}
+## Configuration Environment Variables
+
+HUGO_NUMWORKERMULTIPLIER
+: Can be set to increase or reduce the number of workers used in parallel processing in Hugo. If not set, the number of logical CPUs will be used.
+
## Configuration Lookup Order
Similar to the template [lookup order][], Hugo has a default set of rules for searching for a configuration file in the root of your website's source directory as a default behavior:
diff --git a/content/en/hugo-pipes/fingerprint.md b/content/en/hugo-pipes/fingerprint.md
index 96aa7f556..7aa3f100a 100755
--- a/content/en/hugo-pipes/fingerprint.md
+++ b/content/en/hugo-pipes/fingerprint.md
@@ -18,7 +18,7 @@ draft: false
Fingerprinting and [SRI](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) can be applied to any asset file using `resources.Fingerpint` which takes two arguments, the resource object and a [hash function](https://en.wikipedia.org/wiki/Cryptographic_hash_function).
-The default hash function is `sha256`. Other available functions are `sha512` and `md5`.
+The default hash function is `sha256`. Other available functions are `sha384` (from Hugo `0.55`), `sha512` and `md5`.
Any so processed asset will bear a `.Data.Integrity` property containing an integrity string, which is made up of the name of the hash function, one hyphen and the base64-encoded hash sum.
diff --git a/content/en/news/0.55.0-relnotes/featured.png b/content/en/news/0.55.0-relnotes/featured.png
new file mode 100644
index 000000000..0d3180579
Binary files /dev/null and b/content/en/news/0.55.0-relnotes/featured.png differ
diff --git a/content/en/news/0.55.0-relnotes/index.md b/content/en/news/0.55.0-relnotes/index.md
new file mode 100644
index 000000000..c22eaf366
--- /dev/null
+++ b/content/en/news/0.55.0-relnotes/index.md
@@ -0,0 +1,194 @@
+
+---
+date: 2019-04-08
+title: "Hugo 0.55.0: The early Easter Egg Edition!"
+description: "Faster, virtualized Output Formats, revised shortcodes, new return keyword, and much more …"
+categories: ["Releases"]
+---
+
+Hugo `0.55` is **the early Easter Egg Edition** with lots of great improvements and fixes. The original motivation for this release was to prepare for [Issue #5074](https://github.com/gohugoio/hugo/issues/5074), but the structural changes needed for that paved the way for lots of others. Please study the list of changes below, and especially the **Notes** section, but some headlines include:
+
+## Virtualized Output Formats
+
+[Custom Output Formats](https://gohugo.io/templates/output-formats) has been a really useful feature, but it has had some annoying and not so obvious restrictions that are now lifted. Now all `Page` collections are aware of the output format being rendered. This means, to give some examples, that:
+
+* In a `RSS` template, listing pages with their content will use output format specific shortcode templates even if the pages themselves are not configured to output to that output format.
+* Using `.Render` when looping over a `Page` collection will now work as expected.
+* Every Output Format can be paginated.
+
+We have now also added a new `Permalinkable` configuration attribute, which is enabled by default for `HTML` and `AMP`.
+
+## Shortcodes Revised
+
+Shortcodes using the `{{%/* */%}}` as the outer-most delimiter will now be fully rendered when sent to the content renderer (e.g. Blackfriday for Markdown), meaning they can be part of the generated table of contents, footnotes, etc.
+
+If you want the old behavior, you can put the following line in the start of your shortcode template:
+
+```
+{{ $_hugo_config := `{ "version": 1 }` }}
+```
+
+But using the `{{* */>}}` delimiter will, in most cases, be a better alternative, possibly in combination with the `markdownify` template func.
+
+See [#5763](https://github.com/gohugoio/hugo/issues/5763).
+
+## New Return Keyword for Partials
+
+Hugo's `partial` and `partialCached` are great for template macros. With the new `return` keyword you can write partials as proper functions that can return any type:
+
+```go-html-template
+{{ $v := add . 42 }}
+{{ return $v }}
+```
+
+See [#5783](https://github.com/gohugoio/hugo/issues/5783).
+
+## .Page on Taxonomy nodes
+
+The taxonomy nodes now have a `.Page` accessor which makes it much simpler to get a proper `.Title` etc. This means that older and clumsy constructs can be simplified. Some examples:
+
+```go-html-template
+
<!--more-->
at the appropriate place in the content page. See [Content Summaries](/content-management/summaries/) for more details.
+: a generated summary of the content for easily showing a snippet in a summary view. The breakpoint can be set manually by inserting <!--more-->
at the appropriate place in the content page, or the summary can be written independent of the page text. See [Content Summaries](/content-management/summaries/) for more details.
.TableOfContents
: the rendered [table of contents](/content-management/toc/) for the page.
diff --git a/data/docs.json b/data/docs.json
index 5b1388fea..4a68378ae 100644
--- a/data/docs.json
+++ b/data/docs.json
@@ -66,6 +66,13 @@
"applescript"
]
},
+ {
+ "Name": "Arduino",
+ "Aliases": [
+ "arduino",
+ "ino"
+ ]
+ },
{
"Name": "Awk",
"Aliases": [
@@ -478,6 +485,14 @@
"go-text-template"
]
},
+ {
+ "Name": "GraphQL",
+ "Aliases": [
+ "gql",
+ "graphql",
+ "graphqls"
+ ]
+ },
{
"Name": "Groovy",
"Aliases": [
@@ -653,6 +668,13 @@
"nbp"
]
},
+ {
+ "Name": "Matlab",
+ "Aliases": [
+ "m",
+ "matlab"
+ ]
+ },
{
"Name": "MiniZinc",
"Aliases": [
@@ -1139,6 +1161,13 @@
"tsql"
]
},
+ {
+ "Name": "Turing",
+ "Aliases": [
+ "tu",
+ "turing"
+ ]
+ },
{
"Name": "Turtle",
"Aliases": [
@@ -1180,6 +1209,15 @@
"typoscripthtmldata"
]
},
+ {
+ "Name": "VB.net",
+ "Aliases": [
+ "bas",
+ "vb",
+ "vb.net",
+ "vbnet"
+ ]
+ },
{
"Name": "VHDL",
"Aliases": [
@@ -1355,6 +1393,27 @@
"yml"
]
},
+ {
+ "type": "image/jpg",
+ "string": "image/jpg",
+ "mainType": "image",
+ "subType": "jpg",
+ "delimiter": ".",
+ "suffixes": [
+ "jpg",
+ "jpeg"
+ ]
+ },
+ {
+ "type": "image/png",
+ "string": "image/png",
+ "mainType": "image",
+ "subType": "png",
+ "delimiter": ".",
+ "suffixes": [
+ "png"
+ ]
+ },
{
"type": "image/svg+xml",
"string": "image/svg+xml",
@@ -1459,7 +1518,8 @@
"isPlainText": false,
"isHTML": true,
"noUgly": false,
- "notAlternative": false
+ "notAlternative": false,
+ "permalinkable": true
},
{
"MediaType": "text/css",
@@ -1481,7 +1541,8 @@
"isPlainText": true,
"isHTML": false,
"noUgly": false,
- "notAlternative": true
+ "notAlternative": true,
+ "permalinkable": false
},
{
"MediaType": "text/csv",
@@ -1503,7 +1564,8 @@
"isPlainText": true,
"isHTML": false,
"noUgly": false,
- "notAlternative": false
+ "notAlternative": false,
+ "permalinkable": false
},
{
"MediaType": "text/calendar",
@@ -1525,7 +1587,8 @@
"isPlainText": true,
"isHTML": false,
"noUgly": false,
- "notAlternative": false
+ "notAlternative": false,
+ "permalinkable": false
},
{
"MediaType": "text/html",
@@ -1547,7 +1610,8 @@
"isPlainText": false,
"isHTML": true,
"noUgly": false,
- "notAlternative": false
+ "notAlternative": false,
+ "permalinkable": true
},
{
"MediaType": "application/json",
@@ -1569,7 +1633,8 @@
"isPlainText": true,
"isHTML": false,
"noUgly": false,
- "notAlternative": false
+ "notAlternative": false,
+ "permalinkable": false
},
{
"MediaType": "text/plain",
@@ -1591,7 +1656,8 @@
"isPlainText": true,
"isHTML": false,
"noUgly": false,
- "notAlternative": false
+ "notAlternative": false,
+ "permalinkable": false
},
{
"MediaType": "application/rss+xml",
@@ -1613,7 +1679,8 @@
"isPlainText": false,
"isHTML": false,
"noUgly": true,
- "notAlternative": false
+ "notAlternative": false,
+ "permalinkable": false
},
{
"MediaType": "application/xml",
@@ -1635,7 +1702,8 @@
"isPlainText": false,
"isHTML": false,
"noUgly": true,
- "notAlternative": false
+ "notAlternative": false,
+ "permalinkable": false
}
],
"layouts": [
@@ -2144,6 +2212,17 @@
}
},
"compare": {
+ "And": {
+ "Description": "And computes the Boolean AND of its arguments, returning\nthe first false argument it encounters, or the last argument.",
+ "Args": [
+ "arg0",
+ "args"
+ ],
+ "Aliases": [
+ "and"
+ ],
+ "Examples": []
+ },
"Conditional": {
"Description": "Conditional can be used as a ternary operator.\nIt returns a if condition, else b.",
"Args": [
@@ -2256,6 +2335,27 @@
"ne"
],
"Examples": []
+ },
+ "Not": {
+ "Description": "Not returns the Boolean negation of its argument.",
+ "Args": [
+ "arg"
+ ],
+ "Aliases": [
+ "not"
+ ],
+ "Examples": []
+ },
+ "Or": {
+ "Description": "Or computes the Boolean OR of its arguments, returning\nthe first true argument it encounters, or the last argument.",
+ "Args": [
+ "arg0",
+ "args"
+ ],
+ "Aliases": [
+ "or"
+ ],
+ "Examples": []
}
},
"collections": {
@@ -3226,6 +3326,34 @@
]
}
},
+ "reflect": {
+ "IsMap": {
+ "Description": "IsMap reports whether v is a map.",
+ "Args": [
+ "v"
+ ],
+ "Aliases": null,
+ "Examples": [
+ [
+ "{{ if reflect.IsMap (dict \"a\" 1) }}Map{{ end }}",
+ "Map"
+ ]
+ ]
+ },
+ "IsSlice": {
+ "Description": "IsSlice reports whether v is a slice.",
+ "Args": [
+ "v"
+ ],
+ "Aliases": null,
+ "Examples": [
+ [
+ "{{ if reflect.IsSlice (slice 1 2 3) }}Slice{{ end }}",
+ "Slice"
+ ]
+ ]
+ }
+ },
"resources": {
"Concat": {
"Description": "",
@@ -3392,6 +3520,18 @@
}
},
"site": {
+ "BaseURL": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "Data": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
"Hugo": {
"Description": "",
"Args": null,
@@ -3409,6 +3549,60 @@
"Args": null,
"Aliases": null,
"Examples": null
+ },
+ "LastChange": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "Menus": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "Pages": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "Params": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "RegularPages": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "ServerPort": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "Sites": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "Taxonomies": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
+ },
+ "Title": {
+ "Description": "",
+ "Args": null,
+ "Aliases": null,
+ "Examples": null
}
},
"strings": {
diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html
index fcf081bd5..24d2cd0b2 100644
--- a/layouts/shortcodes/note.html
+++ b/layouts/shortcodes/note.html
@@ -1,3 +1,4 @@
+{{ $_hugo_config := `{ "version": 1 }` }}