Merge commit '9d31f650da964a52f05fc27b7fb99cf3e09778cf'

This commit is contained in:
Bjørn Erik Pedersen
2021-02-23 17:41:05 +01:00
53 changed files with 168 additions and 96 deletions

View File

@@ -1,5 +1,25 @@
defaultMarkdownHandler = "goldmark" defaultMarkdownHandler = "goldmark"
[goldmark]
[goldmark.extensions]
definitionList = true
footnote = true
linkify = true
strikethrough = true
table = true
taskList = true
typographer = true
[goldmark.parser]
autoHeadingID = true
autoHeadingIDType = "github"
[goldmark.parser.attribute]
block = true
title = true
[goldmark.renderer]
hardWraps = false
unsafe = false
xhtml = false
[highlight] [highlight]
style = "trac" style = "trac"
lineNumbersInTable = true lineNumbersInTable = true

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo" title: "hugo"
slug: hugo slug: hugo
url: /commands/hugo/ url: /commands/hugo/
@@ -81,4 +81,4 @@ hugo [flags]
* [hugo server](/commands/hugo_server/) - A high performance webserver * [hugo server](/commands/hugo_server/) - A high performance webserver
* [hugo version](/commands/hugo_version/) - Print the version number of Hugo * [hugo version](/commands/hugo_version/) - Print the version number of Hugo
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo check" title: "hugo check"
slug: hugo_check slug: hugo_check
url: /commands/hugo_check/ url: /commands/hugo_check/
@@ -37,4 +37,4 @@ Contains some verification checks
* [hugo](/commands/hugo/) - hugo builds your site * [hugo](/commands/hugo/) - hugo builds your site
* [hugo check ulimit](/commands/hugo_check_ulimit/) - Check system ulimit settings * [hugo check ulimit](/commands/hugo_check_ulimit/) - Check system ulimit settings
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo check ulimit" title: "hugo check ulimit"
slug: hugo_check_ulimit slug: hugo_check_ulimit
url: /commands/hugo_check_ulimit/ url: /commands/hugo_check_ulimit/
@@ -45,4 +45,4 @@ hugo check ulimit [flags]
* [hugo check](/commands/hugo_check/) - Contains some verification checks * [hugo check](/commands/hugo_check/) - Contains some verification checks
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo config" title: "hugo config"
slug: hugo_config slug: hugo_config
url: /commands/hugo_config/ url: /commands/hugo_config/
@@ -45,4 +45,4 @@ hugo config [flags]
* [hugo](/commands/hugo/) - hugo builds your site * [hugo](/commands/hugo/) - hugo builds your site
* [hugo config mounts](/commands/hugo_config_mounts/) - Print the configured file mounts * [hugo config mounts](/commands/hugo_config_mounts/) - Print the configured file mounts
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo config mounts" title: "hugo config mounts"
slug: hugo_config_mounts slug: hugo_config_mounts
url: /commands/hugo_config_mounts/ url: /commands/hugo_config_mounts/
@@ -40,4 +40,4 @@ hugo config mounts [flags]
* [hugo config](/commands/hugo_config/) - Print the site configuration * [hugo config](/commands/hugo_config/) - Print the site configuration
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo convert" title: "hugo convert"
slug: hugo_convert slug: hugo_convert
url: /commands/hugo_convert/ url: /commands/hugo_convert/
@@ -47,4 +47,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 toTOML](/commands/hugo_convert_totoml/) - Convert front matter to TOML
* [hugo convert toYAML](/commands/hugo_convert_toyaml/) - Convert front matter to YAML * [hugo convert toYAML](/commands/hugo_convert_toyaml/) - Convert front matter to YAML
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo convert toJSON" title: "hugo convert toJSON"
slug: hugo_convert_toJSON slug: hugo_convert_toJSON
url: /commands/hugo_convert_tojson/ url: /commands/hugo_convert_tojson/
@@ -47,4 +47,4 @@ hugo convert toJSON [flags]
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats * [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo convert toTOML" title: "hugo convert toTOML"
slug: hugo_convert_toTOML slug: hugo_convert_toTOML
url: /commands/hugo_convert_totoml/ url: /commands/hugo_convert_totoml/
@@ -47,4 +47,4 @@ hugo convert toTOML [flags]
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats * [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo convert toYAML" title: "hugo convert toYAML"
slug: hugo_convert_toYAML slug: hugo_convert_toYAML
url: /commands/hugo_convert_toyaml/ url: /commands/hugo_convert_toyaml/
@@ -47,4 +47,4 @@ hugo convert toYAML [flags]
* [hugo convert](/commands/hugo_convert/) - Convert your content to different formats * [hugo convert](/commands/hugo_convert/) - Convert your content to different formats
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo deploy" title: "hugo deploy"
slug: hugo_deploy slug: hugo_deploy
url: /commands/hugo_deploy/ url: /commands/hugo_deploy/
@@ -54,4 +54,4 @@ hugo deploy [flags]
* [hugo](/commands/hugo/) - hugo builds your site * [hugo](/commands/hugo/) - hugo builds your site
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo env" title: "hugo env"
slug: hugo_env slug: hugo_env
url: /commands/hugo_env/ url: /commands/hugo_env/
@@ -44,4 +44,4 @@ hugo env [flags]
* [hugo](/commands/hugo/) - hugo builds your site * [hugo](/commands/hugo/) - hugo builds your site
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo gen" title: "hugo gen"
slug: hugo_gen slug: hugo_gen
url: /commands/hugo_gen/ url: /commands/hugo_gen/
@@ -40,4 +40,4 @@ A collection of several useful generators.
* [hugo gen doc](/commands/hugo_gen_doc/) - Generate Markdown documentation for the Hugo CLI. * [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 * [hugo gen man](/commands/hugo_gen_man/) - Generate man pages for the Hugo CLI
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo gen autocomplete" title: "hugo gen autocomplete"
slug: hugo_gen_autocomplete slug: hugo_gen_autocomplete
url: /commands/hugo_gen_autocomplete/ url: /commands/hugo_gen_autocomplete/
@@ -12,13 +12,9 @@ Generate shell autocompletion script for Hugo
Generates a shell autocompletion script for Hugo. Generates a shell autocompletion script for Hugo.
By default, the file is written directly to /etc/bash_completion.d The script is written to the console (stdout).
for convenience, and the command may need superuser rights, e.g.:
$ sudo hugo gen autocomplete To write to file, add the `--completionfile=/path/to/file` flag.
Add `--completionfile=/path/to/file` flag to set alternative
file-path and name.
Add `--type={bash, zsh, fish or powershell}` flag to set alternative Add `--type={bash, zsh, fish or powershell}` flag to set alternative
shell type. shell type.
@@ -62,4 +58,4 @@ hugo gen autocomplete [flags]
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators. * [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo gen chromastyles" title: "hugo gen chromastyles"
slug: hugo_gen_chromastyles slug: hugo_gen_chromastyles
url: /commands/hugo_gen_chromastyles/ url: /commands/hugo_gen_chromastyles/
@@ -49,4 +49,4 @@ hugo gen chromastyles [flags]
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators. * [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo gen doc" title: "hugo gen doc"
slug: hugo_gen_doc slug: hugo_gen_doc
url: /commands/hugo_gen_doc/ url: /commands/hugo_gen_doc/
@@ -51,4 +51,4 @@ hugo gen doc [flags]
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators. * [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo gen man" title: "hugo gen man"
slug: hugo_gen_man slug: hugo_gen_man
url: /commands/hugo_gen_man/ url: /commands/hugo_gen_man/
@@ -47,4 +47,4 @@ hugo gen man [flags]
* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators. * [hugo gen](/commands/hugo_gen/) - A collection of several useful generators.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo import" title: "hugo import"
slug: hugo_import slug: hugo_import
url: /commands/hugo_import/ url: /commands/hugo_import/
@@ -43,4 +43,4 @@ Import requires a subcommand, e.g. `hugo import jekyll jekyll_root_path target_p
* [hugo](/commands/hugo/) - hugo builds your site * [hugo](/commands/hugo/) - hugo builds your site
* [hugo import jekyll](/commands/hugo_import_jekyll/) - hugo import from Jekyll * [hugo import jekyll](/commands/hugo_import_jekyll/) - hugo import from Jekyll
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo import jekyll" title: "hugo import jekyll"
slug: hugo_import_jekyll slug: hugo_import_jekyll
url: /commands/hugo_import_jekyll/ url: /commands/hugo_import_jekyll/
@@ -47,4 +47,4 @@ hugo import jekyll [flags]
* [hugo import](/commands/hugo_import/) - Import your site from others. * [hugo import](/commands/hugo_import/) - Import your site from others.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo list" title: "hugo list"
slug: hugo_list slug: hugo_list
url: /commands/hugo_list/ url: /commands/hugo_list/
@@ -46,4 +46,4 @@ List requires a subcommand, e.g. `hugo list drafts`.
* [hugo list expired](/commands/hugo_list_expired/) - List all posts already expired * [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 * [hugo list future](/commands/hugo_list_future/) - List all posts dated in the future
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo list all" title: "hugo list all"
slug: hugo_list_all slug: hugo_list_all
url: /commands/hugo_list_all/ url: /commands/hugo_list_all/
@@ -44,4 +44,4 @@ hugo list all [flags]
* [hugo list](/commands/hugo_list/) - Listing out various types of content * [hugo list](/commands/hugo_list/) - Listing out various types of content
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo list drafts" title: "hugo list drafts"
slug: hugo_list_drafts slug: hugo_list_drafts
url: /commands/hugo_list_drafts/ url: /commands/hugo_list_drafts/
@@ -44,4 +44,4 @@ hugo list drafts [flags]
* [hugo list](/commands/hugo_list/) - Listing out various types of content * [hugo list](/commands/hugo_list/) - Listing out various types of content
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo list expired" title: "hugo list expired"
slug: hugo_list_expired slug: hugo_list_expired
url: /commands/hugo_list_expired/ url: /commands/hugo_list_expired/
@@ -44,4 +44,4 @@ hugo list expired [flags]
* [hugo list](/commands/hugo_list/) - Listing out various types of content * [hugo list](/commands/hugo_list/) - Listing out various types of content
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo list future" title: "hugo list future"
slug: hugo_list_future slug: hugo_list_future
url: /commands/hugo_list_future/ url: /commands/hugo_list_future/
@@ -44,4 +44,4 @@ hugo list future [flags]
* [hugo list](/commands/hugo_list/) - Listing out various types of content * [hugo list](/commands/hugo_list/) - Listing out various types of content
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod" title: "hugo mod"
slug: hugo_mod slug: hugo_mod
url: /commands/hugo_mod/ url: /commands/hugo_mod/
@@ -84,4 +84,4 @@ See https://gohugo.io/hugo-modules/ for more information.
* [hugo mod vendor](/commands/hugo_mod_vendor/) - Vendor all module dependencies into the _vendor directory. * [hugo mod vendor](/commands/hugo_mod_vendor/) - Vendor all module dependencies into the _vendor directory.
* [hugo mod verify](/commands/hugo_mod_verify/) - Verify dependencies. * [hugo mod verify](/commands/hugo_mod_verify/) - Verify dependencies.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod clean" title: "hugo mod clean"
slug: hugo_mod_clean slug: hugo_mod_clean
url: /commands/hugo_mod_clean/ url: /commands/hugo_mod_clean/
@@ -52,4 +52,4 @@ hugo mod clean [flags]
* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod get" title: "hugo mod get"
slug: hugo_mod_get slug: hugo_mod_get
url: /commands/hugo_mod_get/ url: /commands/hugo_mod_get/
@@ -70,4 +70,4 @@ hugo mod get [flags]
* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod graph" title: "hugo mod graph"
slug: hugo_mod_graph slug: hugo_mod_graph
url: /commands/hugo_mod_graph/ url: /commands/hugo_mod_graph/
@@ -46,4 +46,4 @@ hugo mod graph [flags]
* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod init" title: "hugo mod init"
slug: hugo_mod_init slug: hugo_mod_init
url: /commands/hugo_mod_init/ url: /commands/hugo_mod_init/
@@ -51,4 +51,4 @@ hugo mod init [flags]
* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod npm" title: "hugo mod npm"
slug: hugo_mod_npm slug: hugo_mod_npm
url: /commands/hugo_mod_npm/ url: /commands/hugo_mod_npm/
@@ -45,4 +45,4 @@ hugo mod npm [flags]
* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers.
* [hugo mod npm pack](/commands/hugo_mod_npm_pack/) - Experimental: Prepares and writes a composite package.json file for your project. * [hugo mod npm pack](/commands/hugo_mod_npm_pack/) - Experimental: Prepares and writes a composite package.json file for your project.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod npm pack" title: "hugo mod npm pack"
slug: hugo_mod_npm_pack slug: hugo_mod_npm_pack
url: /commands/hugo_mod_npm_pack/ url: /commands/hugo_mod_npm_pack/
@@ -54,4 +54,4 @@ hugo mod npm pack [flags]
* [hugo mod npm](/commands/hugo_mod_npm/) - Various npm helpers. * [hugo mod npm](/commands/hugo_mod_npm/) - Various npm helpers.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod tidy" title: "hugo mod tidy"
slug: hugo_mod_tidy slug: hugo_mod_tidy
url: /commands/hugo_mod_tidy/ url: /commands/hugo_mod_tidy/
@@ -40,4 +40,4 @@ hugo mod tidy [flags]
* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod vendor" title: "hugo mod vendor"
slug: hugo_mod_vendor slug: hugo_mod_vendor
url: /commands/hugo_mod_vendor/ url: /commands/hugo_mod_vendor/
@@ -47,4 +47,4 @@ hugo mod vendor [flags]
* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo mod verify" title: "hugo mod verify"
slug: hugo_mod_verify slug: hugo_mod_verify
url: /commands/hugo_mod_verify/ url: /commands/hugo_mod_verify/
@@ -46,4 +46,4 @@ hugo mod verify [flags]
* [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers. * [hugo mod](/commands/hugo_mod/) - Various Hugo Modules helpers.
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo new" title: "hugo new"
slug: hugo_new slug: hugo_new
url: /commands/hugo_new/ url: /commands/hugo_new/
@@ -79,4 +79,4 @@ hugo new [path] [flags]
* [hugo new site](/commands/hugo_new_site/) - Create a new site (skeleton) * [hugo new site](/commands/hugo_new_site/) - Create a new site (skeleton)
* [hugo new theme](/commands/hugo_new_theme/) - Create a new theme * [hugo new theme](/commands/hugo_new_theme/) - Create a new theme
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo new site" title: "hugo new site"
slug: hugo_new_site slug: hugo_new_site
url: /commands/hugo_new_site/ url: /commands/hugo_new_site/
@@ -48,4 +48,4 @@ hugo new site [path] [flags]
* [hugo new](/commands/hugo_new/) - Create new content for your site * [hugo new](/commands/hugo_new/) - Create new content for your site
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo new theme" title: "hugo new theme"
slug: hugo_new_theme slug: hugo_new_theme
url: /commands/hugo_new_theme/ url: /commands/hugo_new_theme/
@@ -47,4 +47,4 @@ hugo new theme [name] [flags]
* [hugo new](/commands/hugo_new/) - Create new content for your site * [hugo new](/commands/hugo_new/) - Create new content for your site
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo server" title: "hugo server"
slug: hugo_server slug: hugo_server
url: /commands/hugo_server/ url: /commands/hugo_server/
@@ -92,4 +92,4 @@ hugo server [flags]
* [hugo](/commands/hugo/) - hugo builds your site * [hugo](/commands/hugo/) - hugo builds your site
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -1,5 +1,5 @@
--- ---
date: 2021-02-18 date: 2021-02-20
title: "hugo version" title: "hugo version"
slug: hugo_version slug: hugo_version
url: /commands/hugo_version/ url: /commands/hugo_version/
@@ -44,4 +44,4 @@ hugo version [flags]
* [hugo](/commands/hugo/) - hugo builds your site * [hugo](/commands/hugo/) - hugo builds your site
###### Auto generated by spf13/cobra on 18-Feb-2021 ###### Auto generated by spf13/cobra on 20-Feb-2021

View File

@@ -0,0 +1,8 @@
Add some **general info** about Myshowcase here.
The site is built by:
* [Person 1](https://example.com)
* [Person 1](https://example.com)

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@@ -0,0 +1,37 @@
---
title: Myshowcase
date: 2021-01-14
description: "A short description of this page."
# The URL to the site on the internet.
siteURL: https://gohugo.io/
# Link to the site's Hugo source code if public and you can/want to share.
# Remove or leave blank if not needed/wanted.
siteSource: https://github.com/gohugoio/hugoDocs
# Add credit to the article author. Leave blank or remove if not needed/wanted.
byline: "[bep](https://github.com/bep), Hugo Lead"
---
To complete this showcase:
1. Write the story about your site in this file.
2. Add a summary to the `bio.md` file in this folder.
3. Replace the `featured-template.png` with a screenshot of your site. You can rename it, but it must contain the word `featured`.
4. Create a new pull request in https://github.com/gohugoio/hugoDocs/pulls
The content of this bundle explained:
index.md
: The main content file. Fill in required front matter metadata and write your story. I does not have to be a novel. It can even be self-promotional, but it should include Hugo in some form.
bio.md
: A short summary of the website. Site credits (who built it) fits nicely here.
featured.png
: A reasonably sized screenshot of your website. It can be named anything, but the name must start with "featured". The sample image is `1500x750` (2:1 aspect ratio).

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 KiB

View File

@@ -1,19 +1,20 @@
--- ---
date: 2021-02-19 date: 2021-02-19
title: "0.81.0" title: "Hugo 0.81.0: The Smorgasbord Edition"
description: "0.81.0" description: "Attribute lists (e.g. CSS classes) for Markdown blocks, newlines in template actions/blocks, native Apple M1 ARM64 binary, it's faster, and more …"
categories: ["Releases"] categories: ["Releases"]
toc: true
--- ---
**Hugo 0.81.0** is the first release in this decade, it is the fastest to date, and it's packed with useful new features. **Hugo 0.81.0** is the first release of this decade, it is the fastest to date, and it's packed with useful new features.
## Newlines in Template Actions and Commands ## Newlines in Template Actions and Commands
You can now have newlines within template actions and pipelines. This means that you can now do this and similar: You can now have newlines within template actions and pipelines. This means that you can now do this and similar:
```go-html-template ```go-html-template
FIX dict {{ dict
"country" "Norway" "country" "Norway"
"population" "5 millions" "population" "5 millions"
"language" "Norwegian" "language" "Norwegian"
@@ -23,7 +24,7 @@ FIX dict
"largest_city" "Oslo" "largest_city" "Oslo"
"currency" "Norwegian krone" "currency" "Norwegian krone"
"dialing_code" "+47" "dialing_code" "+47"
FIX }}
``` ```
Note that the above construction will fail in Hugo versions < `0.81.0`. Note that the above construction will fail in Hugo versions < `0.81.0`.
@@ -40,13 +41,11 @@ Hugo already supports adding attribute lists (e.g CSS classes) after titles. We
See [Configure Goldmark](https://gohugo.io/getting-started/configuration-markup#goldmark). See [Configure Goldmark](https://gohugo.io/getting-started/configuration-markup#goldmark).
## Performance ## Performance
This release is the fastest Hugo to date, see details in the benchmarks below. This is [especially true](https://gohugo.io/news/hugo-macos-intel-vs-arm/) if you use the new ARM64 MacOS binary (only works on [Apple M1](https://en.wikipedia.org/wiki/Apple_M1) devices). This release is the fastest Hugo to date, see details in the benchmarks below. This is [especially true](https://gohugo.io/news/hugo-macos-intel-vs-arm/) if you use the new ARM64 MacOS binary (only works on [Apple M1](https://en.wikipedia.org/wiki/Apple_M1) devices).
<details> ### Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0
<summary>Site Building and Rebuilding Benchmarks: v0.80.0 => v0.81.0 </summary>
``` ```
name old time/op new time/op delta name old time/op new time/op delta
@@ -103,7 +102,8 @@ SiteNew/Regular_Many_HTML_templates-16 129k ± 0% 129k ± 0% +0.35
SiteNew/Regular_Page_collections-16 199k ± 0% 200k ± 0% +0.55% (p=0.029 n=4+4) SiteNew/Regular_Page_collections-16 199k ± 0% 200k ± 0% +0.55% (p=0.029 n=4+4)
SiteNew/Regular_List_terms-16 53.5k ± 0% 53.4k ± 0% -0.18% (p=0.029 n=4+4) SiteNew/Regular_List_terms-16 53.5k ± 0% 53.4k ± 0% -0.18% (p=0.029 n=4+4)
``` ```
</details>
## Native Arm Binary for Apple M1 ## Native Arm Binary for Apple M1
@@ -126,6 +126,16 @@ There are several [Hugo Modules](https://gohugo.io/hugo-modules/)-related improv
* Add config option modules.vendorClosest [bdfbcf6f](https://github.com/gohugoio/hugo/commit/bdfbcf6f4b4ab53a617ab76f72e8aa28da6067de) [@bep](https://github.com/bep) [#8235](https://github.com/gohugoio/hugo/issues/8235)[#8242](https://github.com/gohugoio/hugo/issues/8242) * Add config option modules.vendorClosest [bdfbcf6f](https://github.com/gohugoio/hugo/commit/bdfbcf6f4b4ab53a617ab76f72e8aa28da6067de) [@bep](https://github.com/bep) [#8235](https://github.com/gohugoio/hugo/issues/8235)[#8242](https://github.com/gohugoio/hugo/issues/8242)
* Throw an error running hugo mod vendor on mountless module [4ffaeaf1](https://github.com/gohugoio/hugo/commit/4ffaeaf15536596c94dc73b393ca7894e3bd5e2c) [@bep](https://github.com/bep) * Throw an error running hugo mod vendor on mountless module [4ffaeaf1](https://github.com/gohugoio/hugo/commit/4ffaeaf15536596c94dc73b393ca7894e3bd5e2c) [@bep](https://github.com/bep)
## Minify - Keep Comments
Keep comments when running `hugo --minify` with a new setting in config.toml.
```toml
[minify.tdewolff.html]
keepComments = true
```
The default value for this setting is `false`.
## Statistics ## Statistics
@@ -145,6 +155,7 @@ Hugo now has:
## Notes ## Notes
* We have updated to Beta 6 of the Dart Sass Protocol which is not backwards compatible, so if you use Dart Sass you need to also update [that binary](https://gohugo.io/hugo-pipes/scss-sass/#options). * We have updated to Beta 6 of the Dart Sass Protocol which is not backwards compatible, so if you use Dart Sass you need to also update [that binary](https://gohugo.io/hugo-pipes/scss-sass/#options).
* `hugo gen autocomplete` now default to `stdout`; you can change this by setting `--completionfile`. As an added bonus we now also support auto completion for zsh, fish and powershell.
## Changelog ## Changelog

View File

@@ -22,7 +22,7 @@ The last piece is, funnily enough, moving our blog to Hugo, which it is not as o
### Structure ### Structure
Our website is built in such a way that there is a separate Vue.js instance for each of the contexts since we are no using JS-based single-page navigation. We use Hugo for navigation and to build most pages. For the pages we need to make interactive, we use Vue.js to build individual, self-contained single-page Javascript apps. One such example is our sign-up flow at [aether.app](https://aether.app), an individual Vue app living within a Hugo page, with its own JS-based navigation. Our website is built in such a way that there is a separate Vue.js instance for each of the contexts since we are not using JS-based single-page navigation. We use Hugo for navigation and to build most pages. For the pages we need to make interactive, we use Vue.js to build individual, self-contained single-page Javascript apps. One such example is our sign-up flow at [aether.app](https://aether.app), an individual Vue app living within a Hugo page, with its own JS-based navigation.
This is a relatively complex setup, and somewhat out of the ordinary. Yet, even with this custom setup, using Hugo was painless. This is a relatively complex setup, and somewhat out of the ordinary. Yet, even with this custom setup, using Hugo was painless.

View File

@@ -3,7 +3,7 @@ publish = "public"
command = "hugo --gc --minify" command = "hugo --gc --minify"
[context.production.environment] [context.production.environment]
HUGO_VERSION = "0.80.0" HUGO_VERSION = "0.81.0"
HUGO_ENV = "production" HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true" HUGO_ENABLEGITINFO = "true"
@@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true"
command = "hugo --gc --minify --enableGitInfo" command = "hugo --gc --minify --enableGitInfo"
[context.split1.environment] [context.split1.environment]
HUGO_VERSION = "0.80.0" HUGO_VERSION = "0.81.0"
HUGO_ENV = "production" HUGO_ENV = "production"
[context.deploy-preview] [context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment] [context.deploy-preview.environment]
HUGO_VERSION = "0.80.0" HUGO_VERSION = "0.81.0"
[context.branch-deploy] [context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment] [context.branch-deploy.environment]
HUGO_VERSION = "0.80.0" HUGO_VERSION = "0.81.0"
[context.next.environment] [context.next.environment]
HUGO_ENABLEGITINFO = "true" HUGO_ENABLEGITINFO = "true"