diff --git a/.gitignore b/.gitignore index 6f4431f42..bad85a189 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ node_modules nohup.out .DS_Store -trace.out \ No newline at end of file +trace.out +.hugo_build.lock diff --git a/archetypes/default.md b/archetypes/default.md index f30f01f74..bd2ad4117 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,7 +1,6 @@ --- linktitle: "" description: "" -godocref: "" publishdate: "" lastmod: "" categories: [] @@ -10,4 +9,4 @@ weight: 00 slug: "" aliases: [] toc: false ---- \ No newline at end of file +--- diff --git a/archetypes/functions.md b/archetypes/functions.md index 0a5dd344f..cc9b02b36 100644 --- a/archetypes/functions.md +++ b/archetypes/functions.md @@ -1,7 +1,6 @@ --- linktitle: "" description: "" -godocref: "" publishdate: "" lastmod: "" categories: [functions] @@ -14,4 +13,4 @@ aliases: [] relatedfuncs: [] toc: false deprecated: false ---- \ No newline at end of file +--- diff --git a/config/_default/markup.toml b/config/_default/markup.toml index b4a8e059a..fb68fae23 100644 --- a/config/_default/markup.toml +++ b/config/_default/markup.toml @@ -25,3 +25,7 @@ style = "trac" lineNumbersInTable = true noClasses = false +[tableOfContents] +endLevel = 2 +ordered = false +startLevel = 2 \ No newline at end of file diff --git a/content/en/commands/hugo.md b/content/en/commands/hugo.md index 43d9e77b7..00d60be04 100644 --- a/content/en/commands/hugo.md +++ b/content/en/commands/hugo.md @@ -69,6 +69,7 @@ hugo [flags] ### SEE ALSO * [hugo check](/commands/hugo_check/) - Contains some verification checks +* [hugo completion](/commands/hugo_completion/) - generate the autocompletion script for the specified shell * [hugo config](/commands/hugo_config/) - Print the site configuration * [hugo convert](/commands/hugo_convert/) - Convert your content to different formats * [hugo deploy](/commands/hugo_deploy/) - Deploy your site to a Cloud provider. diff --git a/content/en/commands/hugo_completion.md b/content/en/commands/hugo_completion.md new file mode 100644 index 000000000..fdcb008b8 --- /dev/null +++ b/content/en/commands/hugo_completion.md @@ -0,0 +1,48 @@ +--- +title: "hugo completion" +slug: hugo_completion +url: /commands/hugo_completion/ +--- +## hugo completion + +generate the autocompletion script for the specified shell + +### Synopsis + + +Generate the autocompletion script for hugo for the specified shell. +See each sub-command's help for details on how to use the generated script. + + +### Options + +``` + -h, --help help for completion +``` + +### Options inherited from parent commands + +``` + --config string config file (default is path/config.yaml|json|toml) + --configDir string config dir (default "config") + --debug debug output + -e, --environment string build environment + --ignoreVendor ignores any _vendor directory + --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern + --log enable Logging + --logFile string log File path (if set, logging enabled automatically) + --quiet build in quiet mode + -s, --source string filesystem path to read files relative from + --themesDir string filesystem path to themes directory + -v, --verbose verbose output + --verboseLog verbose logging +``` + +### SEE ALSO + +* [hugo](/commands/hugo/) - hugo builds your site +* [hugo completion bash](/commands/hugo_completion_bash/) - generate the autocompletion script for bash +* [hugo completion fish](/commands/hugo_completion_fish/) - generate the autocompletion script for fish +* [hugo completion powershell](/commands/hugo_completion_powershell/) - generate the autocompletion script for powershell +* [hugo completion zsh](/commands/hugo_completion_zsh/) - generate the autocompletion script for zsh + diff --git a/content/en/commands/hugo_completion_bash.md b/content/en/commands/hugo_completion_bash.md new file mode 100644 index 000000000..5ff7c0ad6 --- /dev/null +++ b/content/en/commands/hugo_completion_bash.md @@ -0,0 +1,62 @@ +--- +title: "hugo completion bash" +slug: hugo_completion_bash +url: /commands/hugo_completion_bash/ +--- +## hugo completion bash + +generate the autocompletion script for bash + +### Synopsis + + +Generate the autocompletion script for the bash shell. + +This script depends on the 'bash-completion' package. +If it is not installed already, you can install it via your OS's package manager. + +To load completions in your current shell session: +$ source <(hugo completion bash) + +To load completions for every new session, execute once: +Linux: + $ hugo completion bash > /etc/bash_completion.d/hugo +MacOS: + $ hugo completion bash > /usr/local/etc/bash_completion.d/hugo + +You will need to start a new shell for this setup to take effect. + + +``` +hugo completion bash +``` + +### Options + +``` + -h, --help help for bash + --no-descriptions disable completion descriptions +``` + +### Options inherited from parent commands + +``` + --config string config file (default is path/config.yaml|json|toml) + --configDir string config dir (default "config") + --debug debug output + -e, --environment string build environment + --ignoreVendor ignores any _vendor directory + --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern + --log enable Logging + --logFile string log File path (if set, logging enabled automatically) + --quiet build in quiet mode + -s, --source string filesystem path to read files relative from + --themesDir string filesystem path to themes directory + -v, --verbose verbose output + --verboseLog verbose logging +``` + +### SEE ALSO + +* [hugo completion](/commands/hugo_completion/) - generate the autocompletion script for the specified shell + diff --git a/content/en/commands/hugo_completion_fish.md b/content/en/commands/hugo_completion_fish.md new file mode 100644 index 000000000..aab77bfa0 --- /dev/null +++ b/content/en/commands/hugo_completion_fish.md @@ -0,0 +1,56 @@ +--- +title: "hugo completion fish" +slug: hugo_completion_fish +url: /commands/hugo_completion_fish/ +--- +## hugo completion fish + +generate the autocompletion script for fish + +### Synopsis + + +Generate the autocompletion script for the fish shell. + +To load completions in your current shell session: +$ hugo completion fish | source + +To load completions for every new session, execute once: +$ hugo completion fish > ~/.config/fish/completions/hugo.fish + +You will need to start a new shell for this setup to take effect. + + +``` +hugo completion fish [flags] +``` + +### Options + +``` + -h, --help help for fish + --no-descriptions disable completion descriptions +``` + +### Options inherited from parent commands + +``` + --config string config file (default is path/config.yaml|json|toml) + --configDir string config dir (default "config") + --debug debug output + -e, --environment string build environment + --ignoreVendor ignores any _vendor directory + --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern + --log enable Logging + --logFile string log File path (if set, logging enabled automatically) + --quiet build in quiet mode + -s, --source string filesystem path to read files relative from + --themesDir string filesystem path to themes directory + -v, --verbose verbose output + --verboseLog verbose logging +``` + +### SEE ALSO + +* [hugo completion](/commands/hugo_completion/) - generate the autocompletion script for the specified shell + diff --git a/content/en/commands/hugo_completion_powershell.md b/content/en/commands/hugo_completion_powershell.md new file mode 100644 index 000000000..dc8aadc37 --- /dev/null +++ b/content/en/commands/hugo_completion_powershell.md @@ -0,0 +1,54 @@ +--- +title: "hugo completion powershell" +slug: hugo_completion_powershell +url: /commands/hugo_completion_powershell/ +--- +## hugo completion powershell + +generate the autocompletion script for powershell + +### Synopsis + + +Generate the autocompletion script for powershell. + +To load completions in your current shell session: +PS C:\> hugo completion powershell | Out-String | Invoke-Expression + +To load completions for every new session, add the output of the above command +to your powershell profile. + + +``` +hugo completion powershell [flags] +``` + +### Options + +``` + -h, --help help for powershell + --no-descriptions disable completion descriptions +``` + +### Options inherited from parent commands + +``` + --config string config file (default is path/config.yaml|json|toml) + --configDir string config dir (default "config") + --debug debug output + -e, --environment string build environment + --ignoreVendor ignores any _vendor directory + --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern + --log enable Logging + --logFile string log File path (if set, logging enabled automatically) + --quiet build in quiet mode + -s, --source string filesystem path to read files relative from + --themesDir string filesystem path to themes directory + -v, --verbose verbose output + --verboseLog verbose logging +``` + +### SEE ALSO + +* [hugo completion](/commands/hugo_completion/) - generate the autocompletion script for the specified shell + diff --git a/content/en/commands/hugo_completion_zsh.md b/content/en/commands/hugo_completion_zsh.md new file mode 100644 index 000000000..b3062b7a1 --- /dev/null +++ b/content/en/commands/hugo_completion_zsh.md @@ -0,0 +1,61 @@ +--- +title: "hugo completion zsh" +slug: hugo_completion_zsh +url: /commands/hugo_completion_zsh/ +--- +## hugo completion zsh + +generate the autocompletion script for zsh + +### Synopsis + + +Generate the autocompletion script for the zsh shell. + +If shell completion is not already enabled in your environment you will need +to enable it. You can execute the following once: + +$ echo "autoload -U compinit; compinit" >> ~/.zshrc + +To load completions for every new session, execute once: +# Linux: +$ hugo completion zsh > "${fpath[1]}/_hugo" +# macOS: +$ hugo completion zsh > /usr/local/share/zsh/site-functions/_hugo + +You will need to start a new shell for this setup to take effect. + + +``` +hugo completion zsh [flags] +``` + +### Options + +``` + -h, --help help for zsh + --no-descriptions disable completion descriptions +``` + +### Options inherited from parent commands + +``` + --config string config file (default is path/config.yaml|json|toml) + --configDir string config dir (default "config") + --debug debug output + -e, --environment string build environment + --ignoreVendor ignores any _vendor directory + --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern + --log enable Logging + --logFile string log File path (if set, logging enabled automatically) + --quiet build in quiet mode + -s, --source string filesystem path to read files relative from + --themesDir string filesystem path to themes directory + -v, --verbose verbose output + --verboseLog verbose logging +``` + +### SEE ALSO + +* [hugo completion](/commands/hugo_completion/) - generate the autocompletion script for the specified shell + diff --git a/content/en/content-management/comments.md b/content/en/content-management/comments.md index b5357cba4..bbeb21ada 100644 --- a/content/en/content-management/comments.md +++ b/content/en/content-management/comments.md @@ -47,29 +47,27 @@ Disqus has its own [internal template](https://gohugo.io/templates/internal/#dis {{ template "_internal/disqus.html" . }} ``` -## Comments Alternatives +## Alternatives -There are a few alternatives to commenting on static sites for those who do not want to use Disqus: +These are some alternatives to Disqus: +* [Cactus Comments](https://cactus.chat/docs/integrations/hugo/) (Open Source, Matrix appservice, Docker install) +* [Commento](https://commento.io/) (Open Source, available as a service, local install, or docker image) +* [Graph Comment](https://graphcomment.com/) +* [Hyvor Talk](https://talk.hyvor.com/) (Available as a service) +* [IntenseDebate](https://intensedebate.com/) +* [Isso](https://posativ.org/isso/) (Self-hosted, Python) ([tutorial][issotutorial]) +* [Muut](https://muut.com/) +* [Remark42](https://remark42.com/) (Open source, Golang, Easy to run docker) * [Staticman](https://staticman.net/) * [Talkyard](https://www.talkyard.io/blog-comments) (Open source, & serverless hosting) -* [IntenseDebate](https://intensedebate.com/) -* [Graph Comment][] -* [Muut](https://muut.com/) -* [Isso](https://posativ.org/isso/) (Self-hosted, Python) - * [Tutorial on Implementing Isso with Hugo][issotutorial] * [Utterances](https://utteranc.es/) (Open source, GitHub comments widget built on GitHub issues) -* [Remark](https://github.com/umputun/remark) (Open source, Golang, Easy to run docker) -* [Commento](https://commento.io/) (Open Source, available as a service, local install, or docker image) -* [Hyvor Talk](https://talk.hyvor.com/) (Available as a service) - [configuration]: /getting-started/configuration/ [disquspartial]: /templates/partials/#disqus [disqussetup]: https://disqus.com/profile/signup/ [forum]: https://discourse.gohugo.io [front matter]: /content-management/front-matter/ -[Graph Comment]: https://graphcomment.com/ [kaijuissue]: https://github.com/spf13/kaiju/issues/new [issotutorial]: https://stiobhart.net/2017-02-24-isso-comments/ [partials]: /templates/partials/ diff --git a/content/en/content-management/formats.md b/content/en/content-management/formats.md index 5654be7f0..1ae20ba58 100644 --- a/content/en/content-management/formats.md +++ b/content/en/content-management/formats.md @@ -152,7 +152,6 @@ Markdown syntax is simple enough to learn in a single sitting. The following are [mmark]: https://github.com/mmarkdown/mmark [org]: https://orgmode.org/ [pandoc]: https://www.pandoc.org/ -[Pygments]: https://pygments.org/ [rest]: https://docutils.sourceforge.io/rst.html [sc]: /content-management/shortcodes/ [sct]: /templates/shortcode-templates/ diff --git a/content/en/content-management/front-matter.md b/content/en/content-management/front-matter.md index d1b1f20ba..0353fb1fe 100644 --- a/content/en/content-management/front-matter.md +++ b/content/en/content-management/front-matter.md @@ -185,7 +185,7 @@ path : A [Glob](https://github.com/gobwas/glob) pattern matching the content path below /content. Expects Unix-styled slashes. Note that this is the virtual path, so it starts at the mount root. The matching support double-asterisks so you can match for patterns like `/blog/*/**` to match anything from the third level and down. kind -: A Glob pattern matching the Page's Kind(s), e.g. "{home,section}". +: The Page's Kind, e.g. "section". lang : A Glob pattern matching the Page's language, e.g. "{en,sv}". diff --git a/content/en/content-management/shortcodes.md b/content/en/content-management/shortcodes.md index ce3bcd1f5..7d271041b 100644 --- a/content/en/content-management/shortcodes.md +++ b/content/en/content-management/shortcodes.md @@ -2,7 +2,6 @@ title: Shortcodes linktitle: description: Shortcodes are simple snippets inside your content files calling built-in or custom templates. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2019-11-07 @@ -435,7 +434,6 @@ To learn more about creating custom shortcodes, see the [shortcode template docu [Instagram]: https://www.instagram.com/ [pagevariables]: /variables/page/ [partials]: /templates/partials/ -[Pygments]: https://pygments.org/ [quickstart]: /getting-started/quick-start/ [sctemps]: /templates/shortcode-templates/ [scvars]: /variables/shortcodes/ diff --git a/content/en/content-management/syntax-highlighting.md b/content/en/content-management/syntax-highlighting.md index c0c43cfac..31f12f7d3 100644 --- a/content/en/content-management/syntax-highlighting.md +++ b/content/en/content-management/syntax-highlighting.md @@ -24,7 +24,7 @@ See [Configure Highlight](/getting-started/configuration-markup#highlight). ## Generate Syntax Highlighter CSS -If you run with `pygmentsUseClasses=true` in your site config, you need a style sheet. +If you run with `markup.highlight.noClasses=false` in your site config, you need a style sheet. You can generate one with Hugo: diff --git a/content/en/contribute/development.md b/content/en/contribute/development.md index 000f478fc..b2450e9b4 100644 --- a/content/en/contribute/development.md +++ b/content/en/contribute/development.md @@ -336,7 +336,7 @@ pick 33c8973 Begin workflow pick 3502f2e Refactoring and typo fixes ``` -In the case above we should merge the last to commits in the commit of this tutorial (`Add "How to contribute to Hugo" tutorial`). You can "squash" commits, i.e. merge two or more commits into a single one. +In the case above we should merge the last two commits in the commit of this tutorial (`Add "How to contribute to Hugo" tutorial`). You can "squash" commits, i.e. merge two or more commits into a single one. All operations are written before the commit message. Replace "pick" with an operation. In this case `squash` or `s` for short: diff --git a/content/en/functions/GetPage.md b/content/en/functions/GetPage.md index 366d1f093..dda03347a 100644 --- a/content/en/functions/GetPage.md +++ b/content/en/functions/GetPage.md @@ -1,7 +1,6 @@ --- title: .GetPage description: "Gets a `Page` of a given `path`." -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/RenderString.md b/content/en/functions/RenderString.md index b083e1c34..1b77f6a38 100644 --- a/content/en/functions/RenderString.md +++ b/content/en/functions/RenderString.md @@ -1,7 +1,6 @@ --- title: .RenderString description: "Renders markup to HTML." -godocref: date: 2019-12-18 categories: [functions] menu: diff --git a/content/en/functions/_index.md b/content/en/functions/_index.md index ffebdf6ce..fa7974685 100644 --- a/content/en/functions/_index.md +++ b/content/en/functions/_index.md @@ -2,7 +2,6 @@ title: Functions Quick Reference linktitle: Functions Quick Reference description: Comprehensive list of Hugo templating functions, including basic and advanced usage examples. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/abslangurl.md b/content/en/functions/abslangurl.md index 418ff50fd..d9818fcaf 100644 --- a/content/en/functions/abslangurl.md +++ b/content/en/functions/abslangurl.md @@ -1,7 +1,6 @@ --- title: absLangURL description: Adds the absolute URL with correct language prefix according to site configuration for multilingual. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/absurl.md b/content/en/functions/absurl.md index a31dbb0b4..13524d2d6 100644 --- a/content/en/functions/absurl.md +++ b/content/en/functions/absurl.md @@ -1,7 +1,6 @@ --- title: absURL description: Creates an absolute URL based on the configured baseURL. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/adddate.md b/content/en/functions/adddate.md index 5037beb02..56008c956 100644 --- a/content/en/functions/adddate.md +++ b/content/en/functions/adddate.md @@ -1,7 +1,6 @@ --- title: .AddDate description: Returns the time corresponding to adding the given number of years, months, and days passed to the function. -godocref: https://golang.org/pkg/time/#Time.AddDate date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/after.md b/content/en/functions/after.md index 80c0dd241..da93b3e44 100644 --- a/content/en/functions/after.md +++ b/content/en/functions/after.md @@ -1,7 +1,6 @@ --- title: after description: "`after` slices an array to only the items after the Nth item." -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/apply.md b/content/en/functions/apply.md index df22732a0..3a507c7f9 100644 --- a/content/en/functions/apply.md +++ b/content/en/functions/apply.md @@ -1,7 +1,6 @@ --- title: apply description: Given a map, array, or slice, `apply` returns a new slice with a function applied over it. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/base64.md b/content/en/functions/base64.md index 2f0729b85..54ca0440c 100644 --- a/content/en/functions/base64.md +++ b/content/en/functions/base64.md @@ -1,7 +1,6 @@ --- title: base64 description: "`base64Encode` and `base64Decode` let you easily decode content with a base64 encoding and vice versa through pipes." -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/chomp.md b/content/en/functions/chomp.md index 04fd5e478..c56505c2c 100644 --- a/content/en/functions/chomp.md +++ b/content/en/functions/chomp.md @@ -1,7 +1,7 @@ --- title: chomp +toc: true description: Removes any trailing newline characters. -godocref: Removes any trailing newline characters. date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/countrunes.md b/content/en/functions/countrunes.md index a52829a1c..0acef095b 100644 --- a/content/en/functions/countrunes.md +++ b/content/en/functions/countrunes.md @@ -1,7 +1,6 @@ --- title: countrunes description: Determines the number of runes in a string excluding any whitespace. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/countwords.md b/content/en/functions/countwords.md index 40a7b39e5..17f0fa5c2 100644 --- a/content/en/functions/countwords.md +++ b/content/en/functions/countwords.md @@ -1,7 +1,6 @@ --- title: countwords description: Counts the number of words in a string. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/dateformat.md b/content/en/functions/dateformat.md index d56a91f02..362efabd3 100644 --- a/content/en/functions/dateformat.md +++ b/content/en/functions/dateformat.md @@ -1,7 +1,6 @@ --- title: time.Format description: Converts a date/time to a localized string. -godocref: https://golang.org/pkg/time/ date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -23,7 +22,7 @@ deprecated: false {{ time.Format "Monday, Jan 2, 2006" "2015-01-21" }} → "Wednesday, Jan 21, 2015" ``` -Note that since Hugo 0.87.0, `time.Format` will return a localized string for the currrent language. {{< new-in "0.87.0" >}} +Note that since Hugo 0.87.0, `time.Format` will return a localized string for the current language. {{< new-in "0.87.0" >}} The `LAYOUT` string can be either: @@ -37,7 +36,7 @@ See the [`time` function](/functions/time/) to convert a timestamp string to a G {{< new-in "0.87.0" >}} -Go's date layout strings can be hard to reason about, especially with multiple languages. Since Hugo 0.87.0 you can alternatively use some predefined layout idenfifiers that will output localized dates or times: +Go's date layout strings can be hard to reason about, especially with multiple languages. Since Hugo 0.87.0 you can alternatively use some predefined layout identifiers that will output localized dates or times: ```go-html-template {{ .Date | time.Format ":date_long" }} diff --git a/content/en/functions/default.md b/content/en/functions/default.md index 18f7b7d33..eee00b200 100644 --- a/content/en/functions/default.md +++ b/content/en/functions/default.md @@ -2,7 +2,6 @@ title: default description: Allows setting a default value that can be returned if a first value is not set. qref: "Returns a default value if a value is not set when checked." -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/delimit.md b/content/en/functions/delimit.md index 2d13570f6..533af0523 100644 --- a/content/en/functions/delimit.md +++ b/content/en/functions/delimit.md @@ -1,7 +1,6 @@ --- title: delimit description: Loops through any array, slice, or map and returns a string of all the values separated by a delimiter. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/dict.md b/content/en/functions/dict.md index 68088bae4..6eeb94018 100644 --- a/content/en/functions/dict.md +++ b/content/en/functions/dict.md @@ -1,7 +1,6 @@ --- title: dict description: Creates a dictionary from a list of key and value pairs. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-26 diff --git a/content/en/functions/echoparam.md b/content/en/functions/echoparam.md index 47e35f5c7..515b5c449 100644 --- a/content/en/functions/echoparam.md +++ b/content/en/functions/echoparam.md @@ -1,7 +1,6 @@ --- title: echoParam description: Prints a parameter if it is set. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/emojify.md b/content/en/functions/emojify.md index ac10f837a..20e30fafa 100644 --- a/content/en/functions/emojify.md +++ b/content/en/functions/emojify.md @@ -1,7 +1,6 @@ --- title: emojify description: Runs a string through the Emoji emoticons processor. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/eq.md b/content/en/functions/eq.md index 77f75db37..d342a628a 100644 --- a/content/en/functions/eq.md +++ b/content/en/functions/eq.md @@ -2,7 +2,6 @@ title: eq linktitle: eq description: Returns the boolean truth of arg1 == arg2. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/fileExists.md b/content/en/functions/fileExists.md index 3d535aaca..bb84a1c09 100644 --- a/content/en/functions/fileExists.md +++ b/content/en/functions/fileExists.md @@ -3,7 +3,6 @@ title: "fileExists" linktitle: "fileExists" date: 2017-08-31T22:38:22+02:00 description: Checks whether a file exists under the given path. -godocref: publishdate: 2017-08-31T22:38:22+02:00 lastmod: 2017-08-31T22:38:22+02:00 categories: [functions] @@ -26,4 +25,4 @@ aliases: [] {{- end }} ``` -In the example above, a banner from the `static` folder should be shown if the given path points to an existing file. \ No newline at end of file +In the example above, a banner from the `static` folder should be shown if the given path points to an existing file. diff --git a/content/en/functions/findRe.md b/content/en/functions/findRe.md index 653a482fa..b6375be9c 100644 --- a/content/en/functions/findRe.md +++ b/content/en/functions/findRe.md @@ -1,7 +1,6 @@ --- title: findRE description: Returns a list of strings that match the regular expression. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/first.md b/content/en/functions/first.md index a0c7ca146..98d162617 100644 --- a/content/en/functions/first.md +++ b/content/en/functions/first.md @@ -2,7 +2,6 @@ title: first linktitle: first description: "Slices an array to only the first _N_ elements." -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/float.md b/content/en/functions/float.md index 2a5f7579c..1c589e317 100644 --- a/content/en/functions/float.md +++ b/content/en/functions/float.md @@ -2,7 +2,6 @@ title: float linktitle: float description: Creates a `float` from the argument passed into the function. -godocref: date: 2017-09-28 publishdate: 2017-09-28 lastmod: 2017-09-28 diff --git a/content/en/functions/format.md b/content/en/functions/format.md index b09a77e29..199030782 100644 --- a/content/en/functions/format.md +++ b/content/en/functions/format.md @@ -1,7 +1,6 @@ --- title: .Format description: Formats built-in Hugo dates---`.Date`, `.PublishDate`, and `.Lastmod`---according to Go's layout string. -godocref: https://golang.org/pkg/time/#example_Time_Format date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/ge.md b/content/en/functions/ge.md index ecc2a0223..c7256c0e3 100644 --- a/content/en/functions/ge.md +++ b/content/en/functions/ge.md @@ -2,7 +2,6 @@ title: ge linktitle: ge description: Returns the boolean truth of arg1 >= arg2. -godocref: date: 2017-07-26 publishdate: 2017-07-26 lastmod: 2017-07-26 diff --git a/content/en/functions/get.md b/content/en/functions/get.md index f6d6a6e31..c5b75c7fd 100644 --- a/content/en/functions/get.md +++ b/content/en/functions/get.md @@ -1,7 +1,6 @@ --- title: .Get description: Accesses positional and ordered parameters in shortcode declaration. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -29,7 +28,3 @@ When accessing a named parameter that does not exist, `.Get` returns an empty st ``` [sc]: /templates/shortcode-templates/ - - - - diff --git a/content/en/functions/getenv.md b/content/en/functions/getenv.md index 73569ece5..9ada0d031 100644 --- a/content/en/functions/getenv.md +++ b/content/en/functions/getenv.md @@ -1,7 +1,6 @@ --- title: getenv description: Returns the value of an environment variable. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/gt.md b/content/en/functions/gt.md index 75b5fff0f..91203f890 100644 --- a/content/en/functions/gt.md +++ b/content/en/functions/gt.md @@ -2,7 +2,6 @@ title: gt linktitle: gt description: Returns the boolean truth of arg1 > arg2. -godocref: date: 2017-07-26 publishdate: 2017-07-26 lastmod: 2017-07-26 diff --git a/content/en/functions/hasPrefix.md b/content/en/functions/hasPrefix.md index 3deac60c3..99d5ba819 100644 --- a/content/en/functions/hasPrefix.md +++ b/content/en/functions/hasPrefix.md @@ -2,7 +2,6 @@ title: hasprefix linktitle: hasPrefix description: Tests whether a string begins with prefix. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/haschildren.md b/content/en/functions/haschildren.md index ff1b796cc..1deeb7277 100644 --- a/content/en/functions/haschildren.md +++ b/content/en/functions/haschildren.md @@ -1,7 +1,6 @@ --- title: .HasChildren description: -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/hasmenucurrent.md b/content/en/functions/hasmenucurrent.md index c53c91f94..dbd4aa418 100644 --- a/content/en/functions/hasmenucurrent.md +++ b/content/en/functions/hasmenucurrent.md @@ -1,7 +1,6 @@ --- title: .HasMenuCurrent description: -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/highlight.md b/content/en/functions/highlight.md index 1740742ce..866d15c34 100644 --- a/content/en/functions/highlight.md +++ b/content/en/functions/highlight.md @@ -2,7 +2,6 @@ title: highlight linktitle: highlight description: Takes a string of code and language declaration and uses Chroma to return syntax-highlighted HTML. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -22,5 +21,3 @@ deprecated: false [highlight]: /content-management/shortcodes/#highlight -[installpygments]: /getting-started/installing/#installing-pygments-optional -[syntax]: /content-management/syntax-highlighting/ diff --git a/content/en/functions/hmac.md b/content/en/functions/hmac.md index 02343196b..9df36d300 100644 --- a/content/en/functions/hmac.md +++ b/content/en/functions/hmac.md @@ -2,7 +2,6 @@ title: hmac linktitle: hmac description: Compute the cryptographic checksum of a message. -godocref: date: 2020-05-29 publishdate: 2020-05-29 lastmod: 2020-05-29 diff --git a/content/en/functions/htmlEscape.md b/content/en/functions/htmlEscape.md index 00ab18c74..652492c72 100644 --- a/content/en/functions/htmlEscape.md +++ b/content/en/functions/htmlEscape.md @@ -2,7 +2,6 @@ title: htmlEscape linktitle: description: Returns the given string with the reserved HTML codes escaped. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/htmlUnescape.md b/content/en/functions/htmlUnescape.md index 71db95249..9533fde90 100644 --- a/content/en/functions/htmlUnescape.md +++ b/content/en/functions/htmlUnescape.md @@ -2,7 +2,6 @@ title: htmlUnescape linktitle: htmlUnescape description: Returns the given string with HTML escape codes un-escaped. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/hugo.md b/content/en/functions/hugo.md index 78f5018c4..6cbb36019 100644 --- a/content/en/functions/hugo.md +++ b/content/en/functions/hugo.md @@ -2,7 +2,6 @@ title: hugo linktitle: hugo description: The `hugo` function provides easy access to Hugo-related data. -godocref: date: 2019-01-31 publishdate: 2019-01-31 lastmod: 2019-01-31 @@ -50,4 +49,3 @@ hugo.IsProduction {{% note "Use the Hugo Generator Tag" %}} We highly recommend using `hugo.Generator` in your website's `
`. `hugo.Generator` is included by default in all themes hosted on [themes.gohugo.io](https://themes.gohugo.io). The generator tag allows the Hugo team to track the usage and popularity of Hugo. {{% /note %}} - diff --git a/content/en/functions/humanize.md b/content/en/functions/humanize.md index fe06de3a7..18a087591 100644 --- a/content/en/functions/humanize.md +++ b/content/en/functions/humanize.md @@ -2,7 +2,6 @@ title: humanize linktitle: description: Returns the humanized version of an argument with the first letter capitalized. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/i18n.md b/content/en/functions/i18n.md index c4b89c322..7d88292b9 100644 --- a/content/en/functions/i18n.md +++ b/content/en/functions/i18n.md @@ -2,7 +2,6 @@ title: i18n linktitle: i18n description: Translates a piece of content based on your i18n configuration files. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/images/index.md b/content/en/functions/images/index.md index e61a10916..5553aee92 100644 --- a/content/en/functions/images/index.md +++ b/content/en/functions/images/index.md @@ -1,7 +1,6 @@ --- title: Image Functions description: The images namespace provides a list of filters and other image related functions. -godocref: date: 2017-02-01 categories: [functions] aliases: [/functions/imageconfig/] diff --git a/content/en/functions/in.md b/content/en/functions/in.md index d3a27bc87..7a8cb33eb 100644 --- a/content/en/functions/in.md +++ b/content/en/functions/in.md @@ -2,7 +2,6 @@ title: in linktitle: description: Checks if an element is in an array or slice--or a substring in a string---and returns a boolean. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/index-function.md b/content/en/functions/index-function.md index eb3d6fd2c..6ee46b4a8 100644 --- a/content/en/functions/index-function.md +++ b/content/en/functions/index-function.md @@ -2,7 +2,6 @@ title: index linktitle: index description: Looks up the index(es) or key(s) of the data structure passed into it. -godocref: https://golang.org/pkg/text/template/#hdr-Functions date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -38,6 +37,14 @@ The function takes multiple indices as arguments, and this can be used to get ne {{ index $map "c" "e" }} => 20 ``` +You may write multiple indices as a slice: + +```go-text-template +{{ $map := dict "a" 100 "b" 200 "c" (dict "d" 10 "e" 20) }} +{{ $slice := slice "c" "e" }} +{{ index $map $slice }} => 20 +``` + ## Example: Load Data from a Path Based on Front Matter Params Assume you want to add a `location = ""` field to your front matter for every article written in `content/vacations/`. You want to use this field to populate information about the location at the bottom of the article in your `single.html` template. You also have a directory in `data/locations/` that looks like the following: diff --git a/content/en/functions/int.md b/content/en/functions/int.md index f5416c1dc..24818cef6 100644 --- a/content/en/functions/int.md +++ b/content/en/functions/int.md @@ -2,7 +2,6 @@ title: int linktitle: int description: Creates an `int` from the argument passed into the function. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/intersect.md b/content/en/functions/intersect.md index 004479531..2fe73ded8 100644 --- a/content/en/functions/intersect.md +++ b/content/en/functions/intersect.md @@ -2,7 +2,6 @@ title: intersect linktitle: intersect description: Returns the common elements of two arrays or slices, in the same order as the first array. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/ismenucurrent.md b/content/en/functions/ismenucurrent.md index 66c7197a2..51c21721b 100644 --- a/content/en/functions/ismenucurrent.md +++ b/content/en/functions/ismenucurrent.md @@ -1,7 +1,6 @@ --- title: .IsMenuCurrent description: -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/isset.md b/content/en/functions/isset.md index d6aa2b597..aa36f6dac 100644 --- a/content/en/functions/isset.md +++ b/content/en/functions/isset.md @@ -2,7 +2,6 @@ title: isset linktitle: isset description: Returns true if the parameter is set. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -29,4 +28,3 @@ Takes either a slice, array, or channel and an index or a map and a key as input All site-level configuration keys are stored as lower case. Therefore, a `myParam` key-value set in your [site configuration file](/getting-started/configuration/) needs to be accessed with `{{if isset .Site.Params "myparam"}}` and *not* with `{{if isset .Site.Params "myParam"}}`. Note that you can still access the same config key with `.Site.Params.myParam` *or* `.Site.Params.myparam`, for example, when using [`with`](/functions/with). This restriction also applies when accessing page-level front matter keys from within [shortcodes](/content-management/shortcodes/). {{% /warning %}} - diff --git a/content/en/functions/jsonify.md b/content/en/functions/jsonify.md index a6028fcda..28b90534c 100644 --- a/content/en/functions/jsonify.md +++ b/content/en/functions/jsonify.md @@ -2,7 +2,6 @@ title: jsonify linktitle: jsonify description: Encodes a given object to JSON. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2020-04-13 diff --git a/content/en/functions/lang.Merge.md b/content/en/functions/lang.Merge.md index a80362877..78d658442 100644 --- a/content/en/functions/lang.Merge.md +++ b/content/en/functions/lang.Merge.md @@ -1,7 +1,6 @@ --- title: lang.Merge description: "Merge missing translations from other languages." -godocref: "" date: 2018-03-16 categories: [functions] keywords: [multilingual] diff --git a/content/en/functions/lang.md b/content/en/functions/lang.md index 7b810c9be..1a4da807a 100644 --- a/content/en/functions/lang.md +++ b/content/en/functions/lang.md @@ -8,23 +8,9 @@ keywords: [numbers] menu: docs: parent: "functions" -toc: false signature: ["lang.NumFmt PRECISION NUMBER [OPTIONS [DELIMITER]]"] aliases: ['/functions/numfmt/'] type: 'template-func' + --- -The default options value is `- . ,`. The default delimiter within the options -value is a space. If you need to use a space as one of the options, set a -custom delimiter.s - -Numbers greater than or equal to 5 are rounded up. For example, if precision is set to `0`, `1.5` becomes `2`, and `1.4` becomes `1`. - -``` -{{ lang.NumFmt 2 12345.6789 }} → 12,345.68 -{{ lang.NumFmt 2 12345.6789 "- , ." }} → 12.345,68 -{{ lang.NumFmt 0 -12345.6789 "- . ," }} → -12,346 -{{ lang.NumFmt 6 -12345.6789 "- ." }} → -12345.678900 -{{ lang.NumFmt 6 -12345.6789 "-|.| " "|" }} → -1 2345.678900 -{{ -98765.4321 | lang.NumFmt 2 }} → -98,765.43 -``` diff --git a/content/en/functions/last.md b/content/en/functions/last.md index bf65a8a6d..4a752cb82 100644 --- a/content/en/functions/last.md +++ b/content/en/functions/last.md @@ -2,7 +2,6 @@ title: last linktitle: last description: "slices an array to only the last Nth elements." -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/le.md b/content/en/functions/le.md index 054937f08..1ff0ac582 100644 --- a/content/en/functions/le.md +++ b/content/en/functions/le.md @@ -2,7 +2,6 @@ title: le linktitle: le description: Returns the boolean truth of arg1 <= arg2. -godocref: date: 2017-07-26 publishdate: 2017-07-26 lastmod: 2017-07-26 diff --git a/content/en/functions/len.md b/content/en/functions/len.md index 662b24c16..0681583db 100644 --- a/content/en/functions/len.md +++ b/content/en/functions/len.md @@ -2,7 +2,6 @@ title: len linktitle: len description: Returns the length of a variable according to its type. -godocref: https://golang.org/pkg/builtin/#len date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-04-18 diff --git a/content/en/functions/lower.md b/content/en/functions/lower.md index a42081b68..0e8ba6c6d 100644 --- a/content/en/functions/lower.md +++ b/content/en/functions/lower.md @@ -2,7 +2,6 @@ title: lower linktitle: lower description: Converts all characters in the provided string to lowercase. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/lt.md b/content/en/functions/lt.md index 288d59446..d2a234986 100644 --- a/content/en/functions/lt.md +++ b/content/en/functions/lt.md @@ -2,7 +2,6 @@ title: lt linktitle: lt description: Returns the boolean truth of arg1 < arg2. -godocref: date: 2017-07-26 publishdate: 2017-07-26 lastmod: 2017-07-26 diff --git a/content/en/functions/markdownify.md b/content/en/functions/markdownify.md index 5baf1db57..171c3bf10 100644 --- a/content/en/functions/markdownify.md +++ b/content/en/functions/markdownify.md @@ -2,7 +2,6 @@ title: markdownify linktitle: markdownify description: Runs the provided string through the Markdown processor. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -27,4 +26,4 @@ aliases: [] *Note*: if you need [Render Hooks][], which `markdownify` doesn't currently support, use [.RenderString](/functions/renderstring/) instead. -[Render Hooks]: /getting-started/configuration-markup/#markdown-render-hooks \ No newline at end of file +[Render Hooks]: /getting-started/configuration-markup/#markdown-render-hooks diff --git a/content/en/functions/math.md b/content/en/functions/math.md index 99b8cf34f..2d98c4deb 100644 --- a/content/en/functions/math.md +++ b/content/en/functions/math.md @@ -1,7 +1,6 @@ --- title: Math description: Hugo provides mathematical operators in templates. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2020-02-23 diff --git a/content/en/functions/md5.md b/content/en/functions/md5.md index dfe76aa03..7db856a75 100644 --- a/content/en/functions/md5.md +++ b/content/en/functions/md5.md @@ -2,7 +2,6 @@ title: md5 linktitle: md5 description: hashes the given input and returns its MD5 checksum. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/ne.md b/content/en/functions/ne.md index b672d730c..e072993d2 100644 --- a/content/en/functions/ne.md +++ b/content/en/functions/ne.md @@ -2,7 +2,6 @@ title: ne linktitle: ne description: Returns the boolean truth of arg1 != arg2. -godocref: date: 2017-07-26 publishdate: 2017-07-26 lastmod: 2017-07-26 diff --git a/content/en/functions/now.md b/content/en/functions/now.md index ae8213d05..24e1ab3f7 100644 --- a/content/en/functions/now.md +++ b/content/en/functions/now.md @@ -2,7 +2,6 @@ title: now linktitle: now description: Returns the current local time -godocref: https://godoc.org/time#Time date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-04-30 diff --git a/content/en/functions/os.Stat.md b/content/en/functions/os.Stat.md index 1e878d896..8e4e79b01 100644 --- a/content/en/functions/os.Stat.md +++ b/content/en/functions/os.Stat.md @@ -1,7 +1,6 @@ --- title: os.Stat description: Gets a file information of a given path. -godocref: date: 2018-08-07 publishdate: 2018-08-07 lastmod: 2018-08-07 diff --git a/content/en/functions/param.md b/content/en/functions/param.md index 6e81bb025..eb0a87279 100644 --- a/content/en/functions/param.md +++ b/content/en/functions/param.md @@ -1,7 +1,6 @@ --- title: .Param description: Calls page or site variables into your template. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-04-30 diff --git a/content/en/functions/partialCached.md b/content/en/functions/partialCached.md index 48ef059d9..d7a70ac64 100644 --- a/content/en/functions/partialCached.md +++ b/content/en/functions/partialCached.md @@ -2,7 +2,6 @@ title: partialCached linktitle: partialCached description: Allows for caching of partials that do not need to be re-rendered on every invocation. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/path.Base.md b/content/en/functions/path.Base.md index 87eb67355..c44518a72 100644 --- a/content/en/functions/path.Base.md +++ b/content/en/functions/path.Base.md @@ -1,7 +1,6 @@ --- title: path.Base description: Base returns the last element of a path. -godocref: date: 2018-11-28 publishdate: 2018-11-28 lastmod: 2018-11-28 diff --git a/content/en/functions/path.Dir.md b/content/en/functions/path.Dir.md index 54a3fb8be..851a3dc83 100644 --- a/content/en/functions/path.Dir.md +++ b/content/en/functions/path.Dir.md @@ -1,7 +1,6 @@ --- title: path.Dir description: Dir returns all but the last element of a path. -godocref: date: 2018-11-28 publishdate: 2018-11-28 lastmod: 2018-11-28 diff --git a/content/en/functions/path.Ext.md b/content/en/functions/path.Ext.md index a36b006f3..73db7ab38 100644 --- a/content/en/functions/path.Ext.md +++ b/content/en/functions/path.Ext.md @@ -1,7 +1,6 @@ --- title: path.Ext description: Ext returns the file name extension of a path. -godocref: date: 2018-11-28 publishdate: 2018-11-28 lastmod: 2018-11-28 diff --git a/content/en/functions/path.Join.md b/content/en/functions/path.Join.md index 06a8121f0..96ce86322 100644 --- a/content/en/functions/path.Join.md +++ b/content/en/functions/path.Join.md @@ -1,7 +1,6 @@ --- title: path.Join description: Join path elements into a single path. -godocref: date: 2018-11-28 publishdate: 2018-11-28 lastmod: 2018-11-28 diff --git a/content/en/functions/path.Split.md b/content/en/functions/path.Split.md index c9c32ac56..9a09fbe4a 100644 --- a/content/en/functions/path.Split.md +++ b/content/en/functions/path.Split.md @@ -1,7 +1,6 @@ --- title: path.Split description: Split path immediately following the final slash. -godocref: date: 2018-11-28 publishdate: 2018-11-28 lastmod: 2018-11-28 diff --git a/content/en/functions/plainify.md b/content/en/functions/plainify.md index 88d1a759a..1258c139a 100644 --- a/content/en/functions/plainify.md +++ b/content/en/functions/plainify.md @@ -2,7 +2,6 @@ title: plainify linktitle: plainify description: Strips any HTML and returns the plain text version of the provided string. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-04-30 diff --git a/content/en/functions/pluralize.md b/content/en/functions/pluralize.md index 49ce39344..9c5040934 100644 --- a/content/en/functions/pluralize.md +++ b/content/en/functions/pluralize.md @@ -2,7 +2,6 @@ title: pluralize linktitle: pluralize description: Pluralizes the given word according to a set of common English pluralization rules -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -22,4 +21,3 @@ aliases: [] ``` {{ "cat" | pluralize }} → "cats" ``` - diff --git a/content/en/functions/print.md b/content/en/functions/print.md index d04a6ee17..42b8dcb75 100644 --- a/content/en/functions/print.md +++ b/content/en/functions/print.md @@ -2,7 +2,6 @@ title: print linktitle: print description: Prints the default representation of the given arguments using the standard `fmt.Print` function. -godocref: https://golang.org/pkg/fmt/ date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/printf.md b/content/en/functions/printf.md index dabb97c05..8b12b9883 100644 --- a/content/en/functions/printf.md +++ b/content/en/functions/printf.md @@ -2,7 +2,6 @@ title: printf linktitle: printf description: Formats a string using the standard `fmt.Sprintf` function. -godocref: https://golang.org/pkg/fmt/ date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/println.md b/content/en/functions/println.md index 36dbfaed6..1ea70cbad 100644 --- a/content/en/functions/println.md +++ b/content/en/functions/println.md @@ -2,7 +2,6 @@ title: println linktitle: println description: Prints the default representation of the given argument using the standard `fmt.Print` function and enforces a linebreak. -godocref: https://golang.org/pkg/fmt/ date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/querify.md b/content/en/functions/querify.md index 7c361f326..9e8c4b83f 100644 --- a/content/en/functions/querify.md +++ b/content/en/functions/querify.md @@ -10,7 +10,6 @@ menu: docs: parent: "functions" keywords: [urls] -godocref: signature: ["querify KEY VALUE [KEY VALUE]...", "querify COLLECTION"] hugoversion: deprecated: false diff --git a/content/en/functions/range.md b/content/en/functions/range.md index 26f636d4d..599e2ad25 100644 --- a/content/en/functions/range.md +++ b/content/en/functions/range.md @@ -2,7 +2,6 @@ title: range linktitle: description: Iterates over a map, array, or slice. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/readdir.md b/content/en/functions/readdir.md index 21f626692..a70e1f8bc 100644 --- a/content/en/functions/readdir.md +++ b/content/en/functions/readdir.md @@ -1,7 +1,6 @@ --- title: readDir description: Gets a directory listing from a directory relative to the current working directory. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -27,4 +26,3 @@ If your current project working directory has a single file named `README.txt`: For more information on using `readDir` and `readFile` in your templates, see [Local File Templates][local]. [local]: /templates/files/ - diff --git a/content/en/functions/readfile.md b/content/en/functions/readfile.md index bcd845c96..f89ac02d9 100644 --- a/content/en/functions/readfile.md +++ b/content/en/functions/readfile.md @@ -1,7 +1,6 @@ --- title: readFile description: Reads a file from disk relative to the current project working directory and returns a string. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-04-30 diff --git a/content/en/functions/ref.md b/content/en/functions/ref.md index 0ec249c61..ade380420 100644 --- a/content/en/functions/ref.md +++ b/content/en/functions/ref.md @@ -2,7 +2,6 @@ title: ref linktitle: ref description: Returns the absolute permalink to a page. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2020-09-05 diff --git a/content/en/functions/reflect.IsMap.md b/content/en/functions/reflect.IsMap.md index d75b842b4..9ad50b599 100644 --- a/content/en/functions/reflect.IsMap.md +++ b/content/en/functions/reflect.IsMap.md @@ -1,7 +1,6 @@ --- title: reflect.IsMap description: Reports if a value is a map. -godocref: date: 2018-11-28 publishdate: 2018-11-28 lastmod: 2018-11-28 diff --git a/content/en/functions/reflect.IsSlice.md b/content/en/functions/reflect.IsSlice.md index 27d6aea21..38640918a 100644 --- a/content/en/functions/reflect.IsSlice.md +++ b/content/en/functions/reflect.IsSlice.md @@ -1,7 +1,6 @@ --- title: reflect.IsSlice description: Reports if a value is a slice. -godocref: date: 2018-11-28 publishdate: 2018-11-28 lastmod: 2018-11-28 diff --git a/content/en/functions/relLangURL.md b/content/en/functions/relLangURL.md index 7b70c1117..e624aa355 100644 --- a/content/en/functions/relLangURL.md +++ b/content/en/functions/relLangURL.md @@ -1,7 +1,6 @@ --- title: relLangURL description: Adds the relative URL with correct language prefix according to site configuration for multilingual. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/relref.md b/content/en/functions/relref.md index 18f65f1f8..dbac2f3db 100644 --- a/content/en/functions/relref.md +++ b/content/en/functions/relref.md @@ -2,7 +2,6 @@ title: relref linktitle: relref description: Returns the relative permalink to a page. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2020-09-05 diff --git a/content/en/functions/relurl.md b/content/en/functions/relurl.md index 54e0d441d..71eefb013 100644 --- a/content/en/functions/relurl.md +++ b/content/en/functions/relurl.md @@ -1,7 +1,6 @@ --- title: relURL description: Creates a baseURL-relative URL. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/render.md b/content/en/functions/render.md index e3909bde3..c2347091f 100644 --- a/content/en/functions/render.md +++ b/content/en/functions/render.md @@ -1,7 +1,6 @@ --- title: .Render description: Takes a view to apply when rendering content. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/replace.md b/content/en/functions/replace.md index f1f43d112..07b83d035 100644 --- a/content/en/functions/replace.md +++ b/content/en/functions/replace.md @@ -1,7 +1,6 @@ --- title: replace description: Replaces all occurrences of the search string with the replacement string. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2020-09-07 @@ -27,4 +26,3 @@ The number of replacements can be limited with an optional `LIMIT` parameter. {{ replace "aabbaabb" "a" "z" 2 }} → "zzbbaabb" ``` - diff --git a/content/en/functions/replacere.md b/content/en/functions/replacere.md index f131169be..a2149b6d3 100644 --- a/content/en/functions/replacere.md +++ b/content/en/functions/replacere.md @@ -1,7 +1,6 @@ --- title: replaceRE description: Replaces all occurrences of a regular expression with the replacement pattern. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2020-09-07 diff --git a/content/en/functions/safeCSS.md b/content/en/functions/safeCSS.md index 11c10923b..835ad3065 100644 --- a/content/en/functions/safeCSS.md +++ b/content/en/functions/safeCSS.md @@ -1,7 +1,6 @@ --- title: safeCSS description: Declares the provided string as a known "safe" CSS string. -godocref: https://golang.org/src/html/template/content.go?s=919:929#L15 date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-26 @@ -33,4 +32,3 @@ Example: Given `style = "color: red;"` defined in the front matter of your `.md` {{% note "ZgotmplZ" %}} "ZgotmplZ" is a special value that indicates that unsafe content reached a CSS or URL context. {{% /note %}} - diff --git a/content/en/functions/safeHTML.md b/content/en/functions/safeHTML.md index 956926219..3d5197a4f 100644 --- a/content/en/functions/safeHTML.md +++ b/content/en/functions/safeHTML.md @@ -2,7 +2,6 @@ title: safeHTML # linktitle: description: Declares a provided string as a "safe" HTML document to avoid escaping by Go templates. -godocref: https://golang.org/src/html/template/content.go?s=1374:1385#L25 date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/safeHTMLAttr.md b/content/en/functions/safeHTMLAttr.md index 1e1aa620f..19de2e985 100644 --- a/content/en/functions/safeHTMLAttr.md +++ b/content/en/functions/safeHTMLAttr.md @@ -2,7 +2,6 @@ title: safeHTMLAttr # linktitle: safeHTMLAttr description: Declares the provided string as a safe HTML attribute. -godocref: https://golang.org/src/html/template/content.go?s=1661:1676#L33 date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -29,4 +28,3 @@ Example: Given a site-wide `config.toml` that contains this menu entry: * `` → `` * `` → `` - diff --git a/content/en/functions/safeJS.md b/content/en/functions/safeJS.md index e614e48bf..c67bfa61c 100644 --- a/content/en/functions/safeJS.md +++ b/content/en/functions/safeJS.md @@ -2,7 +2,6 @@ title: safeJS # linktitle: description: Declares the provided string as a known safe JavaScript string. -godocref: https://golang.org/src/html/template/content.go?s=2548:2557#L51 date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -28,4 +27,3 @@ Example: Given `hash = "619c16f"` defined in the front matter of your `.md` file * `` → `` * `` → `` - diff --git a/content/en/functions/safeURL.md b/content/en/functions/safeURL.md index c132ddf05..959076246 100644 --- a/content/en/functions/safeURL.md +++ b/content/en/functions/safeURL.md @@ -1,7 +1,6 @@ --- title: safeURL description: Declares the provided string as a safe URL or URL substring. -godocref: https://golang.org/pkg/html/template/#HTMLEscape date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/scratch.md b/content/en/functions/scratch.md index 5b155aff9..c64aa1119 100644 --- a/content/en/functions/scratch.md +++ b/content/en/functions/scratch.md @@ -1,7 +1,6 @@ --- title: .Scratch description: Acts as a "scratchpad" to store and manipulate data. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -43,7 +42,7 @@ Since Hugo 0.43, there are two different ways of using Scratch: #### The local `newScratch` -{{< new-in "0.43.0" >}} A Scratch instance can also be assigned to any variable using the `newScratch` function. In this case, no Page or Shortcode context is required and the scope of the scratch is only local. The methods detailed below are available from the variable the Scratch instance was assigned to. +{{< new-in "0.43" >}} A Scratch instance can also be assigned to any variable using the `newScratch` function. In this case, no Page or Shortcode context is required and the scope of the scratch is only local. The methods detailed below are available from the variable the Scratch instance was assigned to. ```go-html-template {{ $data := newScratch }} @@ -139,7 +138,7 @@ Return an array of values from `key` sorted by `mapKey`. #### .Delete -{{< new-in "0.38.0" >}} Remove the given key. +{{< new-in "0.38" >}} Remove the given key. ```go-html-template {{ $scratch.Set "greeting" "Hello" }} diff --git a/content/en/functions/seq.md b/content/en/functions/seq.md index 678a4c854..c0750b4a1 100644 --- a/content/en/functions/seq.md +++ b/content/en/functions/seq.md @@ -2,7 +2,6 @@ title: seq # linktitle: description: Creates a sequence of integers. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/sha.md b/content/en/functions/sha.md index d10da3446..24ad165a8 100644 --- a/content/en/functions/sha.md +++ b/content/en/functions/sha.md @@ -2,7 +2,6 @@ title: sha # linktitle: sha description: Hashes the given input and returns either an SHA1 or SHA256 checksum. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/shuffle.md b/content/en/functions/shuffle.md index 9945ba752..95a586e44 100644 --- a/content/en/functions/shuffle.md +++ b/content/en/functions/shuffle.md @@ -2,7 +2,6 @@ title: shuffle # linktitle: description: Returns a random permutation of a given array or slice. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-04-30 diff --git a/content/en/functions/singularize.md b/content/en/functions/singularize.md index 885eae23d..8ca46d433 100644 --- a/content/en/functions/singularize.md +++ b/content/en/functions/singularize.md @@ -2,7 +2,6 @@ title: singularize # linktitle: singularize description: Converts a word according to a set of common English singularization rules. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -22,4 +21,3 @@ aliases: [] `{{ "cats" | singularize }}` → "cat" See also the `.Data.Singular` [taxonomy variable](/variables/taxonomy/) for singularizing taxonomy names. - diff --git a/content/en/functions/site.md b/content/en/functions/site.md index 5a112930f..d4b8e417c 100644 --- a/content/en/functions/site.md +++ b/content/en/functions/site.md @@ -2,7 +2,6 @@ title: site linktitle: site description: The `site` function provides global access to the same data as the `.Site` page method. -godocref: date: 2021-02-11 publishdate: 2021-02-11 lastmod: 2021-02-11 @@ -22,5 +21,3 @@ aliases: [] --- `site` is a global function which returns the same data as the `.Site` page method. See: [Site Variables]({{< relref "/variables/site" >}}). - - diff --git a/content/en/functions/slice.md b/content/en/functions/slice.md index c8847c0c2..0710d5e40 100644 --- a/content/en/functions/slice.md +++ b/content/en/functions/slice.md @@ -2,7 +2,6 @@ title: slice # linktitle: slice description: Creates a slice (array) of all passed arguments. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/slicestr.md b/content/en/functions/slicestr.md index 3d245de3d..254ad9a61 100644 --- a/content/en/functions/slicestr.md +++ b/content/en/functions/slicestr.md @@ -2,7 +2,6 @@ title: slicestr # linktitle: description: Creates a slice of a half-open range, including start and end indices. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -24,4 +23,3 @@ The `end` index can be omitted; it defaults to the string's length. * `{{slicestr "BatMan" 3}}` → "Man" * `{{slicestr "BatMan" 0 3}}` → "Bat" - diff --git a/content/en/functions/sort.md b/content/en/functions/sort.md index ca28f3ee3..b48aad1aa 100644 --- a/content/en/functions/sort.md +++ b/content/en/functions/sort.md @@ -2,7 +2,6 @@ title: sort # linktitle: sort description: Sorts maps, arrays, and slices and returns a sorted slice. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -62,4 +61,3 @@ Authors: {{ range sort .Site.Params.authors "lastName" "desc" }}{{ .lastName }} → Outputs Authors: Perkins Linsley Bergevin ``` - diff --git a/content/en/functions/split.md b/content/en/functions/split.md index c42f8eb9d..a66a7cf0c 100644 --- a/content/en/functions/split.md +++ b/content/en/functions/split.md @@ -2,7 +2,6 @@ title: split # linktitle: split description: splits a string into substrings separated by a delimiter -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -20,5 +19,3 @@ aliases: [] --- * `{{split "tag1,tag2,tag3" "," }}` → ["tag1" "tag2" "tag3"] - - diff --git a/content/en/functions/string.md b/content/en/functions/string.md index d1e1962de..33a781e45 100644 --- a/content/en/functions/string.md +++ b/content/en/functions/string.md @@ -2,7 +2,6 @@ title: string # linktitle: string description: Creates a string from the argument passed to the function -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -20,4 +19,3 @@ aliases: [] --- * `{{string "BatMan"}}` → "BatMan" - diff --git a/content/en/functions/strings.Count.md b/content/en/functions/strings.Count.md index 3971c7da1..40f7043b6 100644 --- a/content/en/functions/strings.Count.md +++ b/content/en/functions/strings.Count.md @@ -1,7 +1,6 @@ --- title: strings.Count description: Returns the number of non-overlapping instances of a substring within a string. -godocref: date: 2020-09-07 publishdate: 2020-09-07 lastmod: 2020-09-07 diff --git a/content/en/functions/strings.HasSuffix.md b/content/en/functions/strings.HasSuffix.md index 347e249da..3b82ea055 100644 --- a/content/en/functions/strings.HasSuffix.md +++ b/content/en/functions/strings.HasSuffix.md @@ -1,7 +1,6 @@ --- title: strings.HasSuffix description: Determine whether or not a given string ends with the provided trailing suffix string. -godocref: date: 2019-08-13 publishdate: 2019-08-13 lastmod: 2019-08-13 diff --git a/content/en/functions/strings.Repeat.md b/content/en/functions/strings.Repeat.md index 3ad4626fb..7cba6d075 100644 --- a/content/en/functions/strings.Repeat.md +++ b/content/en/functions/strings.Repeat.md @@ -2,7 +2,6 @@ title: strings.Repeat # linktitle: description: Returns INPUT repeated COUNT times. -godocref: date: 2018-05-31 publishdate: 2018-05-31 lastmod: 2018-05-31 diff --git a/content/en/functions/strings.RuneCount.md b/content/en/functions/strings.RuneCount.md index 63012ab39..de335f862 100644 --- a/content/en/functions/strings.RuneCount.md +++ b/content/en/functions/strings.RuneCount.md @@ -1,7 +1,6 @@ --- title: strings.RuneCount description: Determines the number of runes in a string. -godocref: date: 2018-06-01 publishdate: 2018-06-01 lastmod: 2018-06-01 @@ -25,4 +24,4 @@ In contrast with `strings.CountRunes` function, which strips HTML and whitespace ``` -[`utf8.RuneCount`]: https://golang.org/pkg/unicode/utf8/#RuneCount \ No newline at end of file +[`utf8.RuneCount`]: https://golang.org/pkg/unicode/utf8/#RuneCount diff --git a/content/en/functions/strings.TrimLeft.md b/content/en/functions/strings.TrimLeft.md index 6bbd62cf5..2d71a1367 100644 --- a/content/en/functions/strings.TrimLeft.md +++ b/content/en/functions/strings.TrimLeft.md @@ -1,7 +1,6 @@ --- title: strings.TrimLeft description: Returns a slice of a given string with all leading characters contained in the cutset removed. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/strings.TrimPrefix.md b/content/en/functions/strings.TrimPrefix.md index eeeecf76e..a66bbe3db 100644 --- a/content/en/functions/strings.TrimPrefix.md +++ b/content/en/functions/strings.TrimPrefix.md @@ -1,7 +1,6 @@ --- title: strings.TrimPrefix description: Returns a given string s without the provided leading prefix string. If s doesn't start with prefix, s is returned unchanged. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -22,4 +21,4 @@ Given the string `"aabbaa"`, the specified prefix is only removed if `"aabbaa"` {{ strings.TrimPrefix "a" "aabbaa" }} → "abbaa" {{ strings.TrimPrefix "aa" "aabbaa" }} → "bbaa" - {{ strings.TrimPrefix "aaa" "aabbaa" }} → "aabbaa" \ No newline at end of file + {{ strings.TrimPrefix "aaa" "aabbaa" }} → "aabbaa" diff --git a/content/en/functions/strings.TrimRight.md b/content/en/functions/strings.TrimRight.md index 2c6040218..05084a4c0 100644 --- a/content/en/functions/strings.TrimRight.md +++ b/content/en/functions/strings.TrimRight.md @@ -1,7 +1,6 @@ --- title: strings.TrimRight description: Returns a slice of a given string with all trailing characters contained in the cutset removed. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -25,4 +24,3 @@ Given the string `"abba"`, trailing `"a"`'s can be removed a follows: Numbers can be handled as well: {{ strings.TrimRight 12 1221341221 }} → "122134" - diff --git a/content/en/functions/strings.TrimSuffix.md b/content/en/functions/strings.TrimSuffix.md index 208e0968d..916038054 100644 --- a/content/en/functions/strings.TrimSuffix.md +++ b/content/en/functions/strings.TrimSuffix.md @@ -1,7 +1,6 @@ --- title: strings.TrimSuffix description: Returns a given string s without the provided trailing suffix string. If s doesn't end with suffix, s is returned unchanged. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -22,4 +21,4 @@ Given the string `"aabbaa"`, the specified suffix is only removed if `"aabbaa"` {{ strings.TrimSuffix "a" "aabbaa" }} → "aabba" {{ strings.TrimSuffix "aa" "aabbaa" }} → "aabb" - {{ strings.TrimSuffix "aaa" "aabbaa" }} → "aabbaa" \ No newline at end of file + {{ strings.TrimSuffix "aaa" "aabbaa" }} → "aabbaa" diff --git a/content/en/functions/substr.md b/content/en/functions/substr.md index c02141ab2..d0fdfe26d 100644 --- a/content/en/functions/substr.md +++ b/content/en/functions/substr.md @@ -2,7 +2,6 @@ title: substr # linktitle: description: Extracts parts of a string from a specified character's position and returns the specified number of characters. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/templates.Exists.md b/content/en/functions/templates.Exists.md index 08ed37893..36fa0ea60 100644 --- a/content/en/functions/templates.Exists.md +++ b/content/en/functions/templates.Exists.md @@ -2,7 +2,6 @@ title: templates.Exists linktitle: "" description: "Checks whether a template file exists under the given path relative to the `layouts` directory." -godocref: "" date: 2018-11-01 publishdate: 2018-11-01 lastmod: 2018-11-01 diff --git a/content/en/functions/time.md b/content/en/functions/time.md index e1f24a40b..681c85fd9 100644 --- a/content/en/functions/time.md +++ b/content/en/functions/time.md @@ -2,7 +2,6 @@ title: time linktitle: description: Converts a timestamp string into a `time.Time` structure. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/title.md b/content/en/functions/title.md index da4054bbd..201e4c140 100644 --- a/content/en/functions/title.md +++ b/content/en/functions/title.md @@ -2,7 +2,6 @@ title: title # linktitle: description: Converts all characters in the provided string to title case. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/trim.md b/content/en/functions/trim.md index 81ed05c60..7945ffef9 100644 --- a/content/en/functions/trim.md +++ b/content/en/functions/trim.md @@ -2,7 +2,6 @@ title: trim # linktitle: description: Returns a slice of a passed string with all leading and trailing characters from cutset removed. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/truncate.md b/content/en/functions/truncate.md index 0336853c1..8d0dd36b1 100644 --- a/content/en/functions/truncate.md +++ b/content/en/functions/truncate.md @@ -2,7 +2,6 @@ title: truncate # linktitle: truncate description: Truncates a text to a max length without cutting words or leaving unclosed HTML tags. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/union.md b/content/en/functions/union.md index db3c14283..bf2a302d4 100644 --- a/content/en/functions/union.md +++ b/content/en/functions/union.md @@ -2,7 +2,6 @@ title: union # linktitle: union description: Given two arrays or slices, returns a new array that contains the elements or objects that belong to either or both arrays/slices. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-03-12 diff --git a/content/en/functions/uniq.md b/content/en/functions/uniq.md index 9692b247e..0a720f88f 100644 --- a/content/en/functions/uniq.md +++ b/content/en/functions/uniq.md @@ -2,7 +2,6 @@ title: uniq linktitle: uniq description: Takes in a slice or array and returns a slice with subsequent duplicate elements removed. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -25,7 +24,3 @@ needsexamples: false {{ slice 1 2 3 2 | uniq }} ``` - - - - diff --git a/content/en/functions/unix.md b/content/en/functions/unix.md index 49a120e3d..eaf23c564 100644 --- a/content/en/functions/unix.md +++ b/content/en/functions/unix.md @@ -2,7 +2,6 @@ title: .Unix draft: false description: .Unix returns the local Time corresponding to the given Unix time, sec seconds and nsec nanoseconds since January 1, 1970 UTC. -godocref: https://golang.org/search?q=Unix#Functions date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/upper.md b/content/en/functions/upper.md index 2d75b37bd..0762541dd 100644 --- a/content/en/functions/upper.md +++ b/content/en/functions/upper.md @@ -2,7 +2,6 @@ title: upper # linktitle: upper description: Converts all characters in a string to uppercase -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 @@ -27,4 +26,3 @@ Note that `upper` can be applied in your templates in more than one way: {{ upper "BatMan" }} → "BATMAN" {{ "BatMan" | upper }} → "BATMAN" ``` - diff --git a/content/en/functions/urlize.md b/content/en/functions/urlize.md index 0742dd029..82a88b9d7 100644 --- a/content/en/functions/urlize.md +++ b/content/en/functions/urlize.md @@ -10,7 +10,6 @@ menu: docs: parent: "functions" keywords: [urls,strings] -godocref: signature: ["urlize INPUT"] hugoversion: deprecated: false diff --git a/content/en/functions/urls.Parse.md b/content/en/functions/urls.Parse.md index 76c48d4db..7709ad8c2 100644 --- a/content/en/functions/urls.Parse.md +++ b/content/en/functions/urls.Parse.md @@ -1,7 +1,6 @@ --- title: urls.Parse description: Parse parses a given url, which may be relative or absolute, into a URL structure. -godocref: https://godoc.org/net/url#URL date: 2017-09-25 publishdate: 2017-09-25 lastmod: 2017-09-25 @@ -29,4 +28,4 @@ and returns a [URL](https://godoc.org/net/url#URL) structure. The struct fields ``` {{ $url.Scheme }} → "http" {{ $url.Host }} → "www.gohugo.io" -``` \ No newline at end of file +``` diff --git a/content/en/functions/where.md b/content/en/functions/where.md index a41ec8e9a..f712cd984 100644 --- a/content/en/functions/where.md +++ b/content/en/functions/where.md @@ -2,7 +2,6 @@ title: where # linktitle: where description: Filters an array to only the elements containing a matching value for a given field. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-02-01 diff --git a/content/en/functions/with.md b/content/en/functions/with.md index a5c27d4f3..ae643caf7 100644 --- a/content/en/functions/with.md +++ b/content/en/functions/with.md @@ -2,7 +2,6 @@ title: with # linktitle: with description: Rebinds the context (`.`) within its scope and skips the block if the variable is absent or empty. -godocref: date: 2017-02-01 publishdate: 2017-02-01 lastmod: 2017-03-12 diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md index e3aa643e3..9c78446ac 100644 --- a/content/en/getting-started/configuration.md +++ b/content/en/getting-started/configuration.md @@ -106,222 +106,306 @@ The following is the full list of Hugo-defined variables with their default value in parentheses. Users may choose to override those values in their site config file(s). -archetypeDir ("archetypes") -: The directory where Hugo finds archetype files (content templates). {{% module-mounts-note %}} +### archetypeDir -assetDir ("assets") -: The directory where Hugo finds asset files used in [Hugo Pipes](/hugo-pipes/). {{% module-mounts-note %}} +**Default value:** "archetypes" -baseURL -: Hostname (and path) to the root, e.g. https://bep.is/ +The directory where Hugo finds archetype files (content templates). {{% module-mounts-note %}} -blackfriday -: See [Configure Blackfriday](/getting-started/configuration-markup#blackfriday) +### assetDir -build -: See [Configure Build](#configure-build) +**Default value:** "assets" -buildDrafts (false) -: Include drafts when building. +The directory where Hugo finds asset files used in [Hugo Pipes](/hugo-pipes/). {{% module-mounts-note %}} -buildExpired (false) -: Include content already expired. +### baseURL +Hostname (and path) to the root, e.g. https://bep.is/ -buildFuture (false) -: Include content with publishdate in the future. +### blackfriday +See [Configure Blackfriday](/getting-started/configuration-markup#blackfriday) -caches -: See [Configure File Caches](#configure-file-caches) +### build +See [Configure Build](#configure-build) -cascade {{< new-in "0.86.0" >}} -: Pass down down default configuration values (front matter) to pages in the content tree. The options in site config is the same as in page front matter, see [Front Matter Cascade](/content-management/front-matter#front-matter-cascade). +### buildDrafts (false) -canonifyURLs (false) -: Enable to turn relative URLs into absolute. +**Default value:** false -contentDir ("content") -: The directory from where Hugo reads content files. {{% module-mounts-note %}} +Include drafts when building. -dataDir ("data") -: The directory from where Hugo reads data files. {{% module-mounts-note %}} +### buildExpired -defaultContentLanguage ("en") -: Content without language indicator will default to this language. +**Default value:** false -defaultContentLanguageInSubdir (false) -: Render the default content language in subdir, e.g. `content/en/`. The site root `/` will then redirect to `/en/`. +Include content already expired. -disableAliases (false) -: Will disable generation of alias redirects. Note that even if `disableAliases` is set, the aliases themselves are preserved on the page. The motivation with this is to be able to generate 301 redirects in an `.htaccess`, a Netlify `_redirects` file or similar using a custom output format. +### buildFuture -disableHugoGeneratorInject (false) -: Hugo will, by default, inject a generator meta tag in the HTML head on the _home page only_. You can turn it off, but we would really appreciate if you don't, as this is a good way to watch Hugo's popularity on the rise. +**Default value:** false -disableKinds ([]) -: Enable disabling of all pages of the specified *Kinds*. Allowed values in this list: `"page"`, `"home"`, `"section"`, `"taxonomy"`, `"term"`, `"RSS"`, `"sitemap"`, `"robotsTXT"`, `"404"`. +Include content with publishdate in the future. -disableLiveReload (false) -: Disable automatic live reloading of browser window. +### caches +See [Configure File Caches](#configure-file-caches) + +### cascade + +{{< new-in "0.86.0" >}} + +Pass down down default configuration values (front matter) to pages in the content tree. The options in site config is the same as in page front matter, see [Front Matter Cascade](/content-management/front-matter#front-matter-cascade). + +### canonifyURLs + +**Default value:** false + +Enable to turn relative URLs into absolute. + +### contentDir + +**Default value:** "content" + +The directory from where Hugo reads content files. {{% module-mounts-note %}} + +### dataDir + +**Default value:** "data" + +The directory from where Hugo reads data files. {{% module-mounts-note %}} + +### defaultContentLanguage + +**Default value:** "en" + +Content without language indicator will default to this language. + +### defaultContentLanguageInSubdir + +**Default value:** false + +Render the default content language in subdir, e.g. `content/en/`. The site root `/` will then redirect to `/en/`. + +### disableAliases + +**Default value:** false + +Will disable generation of alias redirects. Note that even if `disableAliases` is set, the aliases themselves are preserved on the page. The motivation with this is to be able to generate 301 redirects in an `.htaccess`, a Netlify `_redirects` file or similar using a custom output format. + +### disableHugoGeneratorInject + +**Default value:** false + +Hugo will, by default, inject a generator meta tag in the HTML head on the _home page only_. You can turn it off, but we would really appreciate if you don't, as this is a good way to watch Hugo's popularity on the rise. + +### disableKinds + +**Default value:** [] + +Enable disabling of all pages of the specified *Kinds*. Allowed values in this list: `"page"`, `"home"`, `"section"`, `"taxonomy"`, `"term"`, `"RSS"`, `"sitemap"`, `"robotsTXT"`, `"404"`. + +### disableLiveReload + +**Default value:** false + +Disable automatic live reloading of browser window. + +### disablePathToLower + +**Default value:** false -disablePathToLower (false) : Do not convert the url/path to lowercase. -enableEmoji (false) -: Enable Emoji emoticons support for page content; see the [Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet/). +### enableEmoji -enableGitInfo (false) -: Enable `.GitInfo` object for each page (if the Hugo site is versioned by Git). This will then update the `Lastmod` parameter for each page using the last git commit date for that content file. +**Default value:** false -enableInlineShortcodes (false) -: Enable inline shortcode support. See [Inline Shortcodes](/templates/shortcode-templates/#inline-shortcodes). +Enable Emoji emoticons support for page content; see the [Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet/). -enableMissingTranslationPlaceholders (false) -: Show a placeholder instead of the default value or an empty string if a translation is missing. +### enableGitInfo -enableRobotsTXT (false) -: Enable generation of `robots.txt` file. +**Default value:** false -frontmatter +Enable `.GitInfo` object for each page (if the Hugo site is versioned by Git). This will then update the `Lastmod` parameter for each page using the last git commit date for that content file. -: See [Front matter Configuration](#configure-front-matter). +### enableInlineShortcodes -footnoteAnchorPrefix ("") -: Prefix for footnote anchors. +**Default value:** false -footnoteReturnLinkContents ("") -: Text to display for footnote return links. +Enable inline shortcode support. See [Inline Shortcodes](/templates/shortcode-templates/#inline-shortcodes). -googleAnalytics ("") -: Google Analytics tracking ID. +### enableMissingTranslationPlaceholders -hasCJKLanguage (false) -: If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will make `.Summary` and `.WordCount` behave correctly for CJK languages. +**Default value:** false -imaging -: See [Image Processing Config](/content-management/image-processing/#image-processing-config). +Show a placeholder instead of the default value or an empty string if a translation is missing. -languages -: See [Configure Languages](/content-management/multilingual/#configure-languages). +### enableRobotsTXT -languageCode ("") -: The site's language code. It is used in the default [RSS template](/templates/rss/#configure-rss) and can be useful for [multi-lingual sites](/content-management/multilingual/#configure-multilingual-multihost). +**Default value:** false -languageName ("") -: The site's language name. +Enable generation of `robots.txt` file. -disableLanguages -: See [Disable a Language](/content-management/multilingual/#disable-a-language) +### frontmatter -layoutDir ("layouts") -: The directory from where Hugo reads layouts (templates). +See [Front matter Configuration](#configure-front-matter). -log (false) -: Enable logging. +### footnoteAnchorPrefix -logFile ("") -: Log File path (if set, logging enabled automatically). +**Default value:** "" -markup -: See [Configure Markup](/getting-started/configuration-markup).{{< new-in "0.60.0" >}} +Prefix for footnote anchors. -mediaTypes +### footnoteReturnLinkContents + +**Default value:** "" + +Text to display for footnote return links. + +### googleAnalytics + +**Default value:** "" + +Google Analytics tracking ID. + +### hasCJKLanguage + +**Default value:** false + +If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will make `.Summary` and `.WordCount` behave correctly for CJK languages. + +### imaging +See [Image Processing Config](/content-management/image-processing/#image-processing-config). + +### languages +See [Configure Languages](/content-management/multilingual/#configure-languages). + +### disableLanguages + +See [Disable a Language](/content-management/multilingual/#disable-a-language) + +### markup +See [Configure Markup](/getting-started/configuration-markup).{{< new-in "0.60.0" >}} + +### mediaTypes See [Configure Media Types](/templates/output-formats/#media-types). -menu -: See [Add Non-content Entries to a Menu](/content-management/menus/#add-non-content-entries-to-a-menu). +### menus +See [Add Non-content Entries to a Menu](/content-management/menus/#add-non-content-entries-to-a-menu). -minify -: See [Configure Minify](#configure-minify) +### minify +See [Configure Minify](#configure-minify) -module -: Module config see [Module Config](/hugo-modules/configuration/).{{< new-in "0.56.0" >}} +### module +Module config see [Module Config](/hugo-modules/configuration/).{{< new-in "0.56.0" >}} -newContentEditor ("") -: The editor to use when creating new content. +### newContentEditor +The editor to use when creating new content. -noChmod (false) -: Don't sync permission mode of files. +### noChmod +Don't sync permission mode of files. -noTimes (false) -: Don't sync modification time of files. +### noTimes +Don't sync modification time of files. -outputFormats +### outputFormats See [Configure Output Formats](#configure-additional-output-formats). -paginate (10) -: Default number of elements per page in [pagination](/templates/pagination/). +### paginate -paginatePath ("page") -: The path element used during pagination (https://example.com/page/2). +**Default value:** 10 -permalinks -: See [Content Management](/content-management/urls/#permalinks). +Default number of elements per page in [pagination](/templates/pagination/). -pluralizeListTitles (true) -: Pluralize titles in lists. +### paginatePath -publishDir ("public") -: The directory to where Hugo will write the final static site (the HTML files etc.). +**Default value:** "page" -related +The path element used during pagination (`https://example.com/page/2`). + +### permalinks +See [Content Management](/content-management/urls/#permalinks). + +### pluralizeListTitles + +**Default value:** true + +Pluralize titles in lists. + +### publishDir + +**Default value:** "public" + +The directory to where Hugo will write the final static site (the HTML files etc.). + +### related : See [Related Content](/content-management/related/#configure-related-content).{{< new-in "0.27" >}} -relativeURLs (false) -: Enable this to make all relative URLs relative to content root. Note that this does not affect absolute URLs. +### relativeURLs +Enable this to make all relative URLs relative to content root. Note that this does not affect absolute URLs. -refLinksErrorLevel ("ERROR") -: When using `ref` or `relref` to resolve page links and a link cannot resolved, it will be logged with this logg level. Valid values are `ERROR` (default) or `WARNING`. Any `ERROR` will fail the build (`exit -1`). +### refLinksErrorLevel -refLinksNotFoundURL -: URL to be used as a placeholder when a page reference cannot be found in `ref` or `relref`. Is used as-is. +**Default value:** "ERROR" -rssLimit (unlimited) -: Maximum number of items in the RSS feed. +When using `ref` or `relref` to resolve page links and a link cannot resolved, it will be logged with this log level. Valid values are `ERROR` (default) or `WARNING`. Any `ERROR` will fail the build (`exit -1`). -sectionPagesMenu ("") -: See ["Section Menu for Lazy Bloggers"](/templates/menu-templates/#section-menu-for-lazy-bloggers). +### refLinksNotFoundURL +URL to be used as a placeholder when a page reference cannot be found in `ref` or `relref`. Is used as-is. -sitemap -: Default [sitemap configuration](/templates/sitemap-template/#configure-sitemapxml). +### rssLimit -staticDir ("static") -: A directory or a list of directories from where Hugo reads [static files][static-files]. {{% module-mounts-note %}} +Maximum number of items in the RSS feed. -summaryLength (70) -: The length of text in words to show in a [`.Summary`](/content-management/summaries/#hugo-defined-automatic-summary-splitting). +### sectionPagesMenu +See ["Section Menu for Lazy Bloggers"](/templates/menu-templates/#section-menu-for-lazy-bloggers). -taxonomies -: See [Configure Taxonomies](/content-management/taxonomies#configure-taxonomies). +### sitemap +Default [sitemap configuration](/templates/sitemap-template/#configure-sitemapxml). -theme ("") -: Theme to use (located by default in `/themes/THEMENAME/`). +### summaryLength -themesDir ("themes") -: The directory where Hugo reads the themes from. +**Default value:** 70 -timeout (10000) -: Timeout for generating page contents, in milliseconds (defaults to 10 seconds). *Note:* this is used to bail out of recursive content generation, if your pages are slow to generate (e.g., because they require large image processing or depend on remote contents) you might need to raise this limit. +The length of text in words to show in a [`.Summary`](/content-management/summaries/#hugo-defined-automatic-summary-splitting). -timeZone {{< new-in "0.86.0" >}} -: The time zone (or location), e.g. `Europe/Oslo`, used to parse front matter dates without such information and in the [`time` function](/functions/time/). +### taxonomies +See [Configure Taxonomies](/content-management/taxonomies#configure-taxonomies). -title ("") -: Site title. +### theme +: See [Module Config](/hugo-modules/configuration/#module-config-imports) for how to import a theme. -titleCaseStyle ("AP") -: See [Configure Title Case](#configure-title-case) +### themesDir -uglyURLs (false) -: When enabled, creates URL of the form `/filename.html` instead of `/filename/`. +**Default value:** "themes" -verbose (false) -: Enable verbose output. +The directory where Hugo reads the themes from. -verboseLog (false) -: Enable verbose logging. +### timeout -watch (false) -: Watch filesystem for changes and recreate as needed. +**Default value:** 10000 + +Timeout for generating page contents, in milliseconds (defaults to 10 seconds). *Note:* this is used to bail out of recursive content generation, if your pages are slow to generate (e.g., because they require large image processing or depend on remote contents) you might need to raise this limit. + +### timeZone + +{{< new-in "0.87.0" >}} + +The time zone (or location), e.g. `Europe/Oslo`, used to parse front matter dates without such information and in the [`time` function](/functions/time/). The list of valid values may be system dependent, but should include `UTC`, `Local`, and any location in the [IANA Time Zone database](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + +### title +Site title. + +### titleCaseStyle + +**Default value:** "AP" + +See [Configure Title Case](#configure-title-case) + +### uglyURLs +When enabled, creates URL of the form `/filename.html` instead of `/filename/`. + +### watch + +Watch filesystem for changes and recreate as needed. {{% note %}} If you are developing your site on a \*nix machine, here is a handy shortcut for finding a configuration option from the command line: @@ -366,7 +450,7 @@ noJSConfigInAssets {{< new-in "0.78.0" >}} {{< new-in "0.67.0" >}} -This is only relevant when running `hugo server`, and it allows to set HTTP headers during development, which allows you to test out your Content Security Policy and similar. The configuration format matches [Netlify's](https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file) with slighly more powerful [Glob matching](https://github.com/gobwas/glob): +This is only relevant when running `hugo server`, and it allows to set HTTP headers during development, which allows you to test out your Content Security Policy and similar. The configuration format matches [Netlify's](https://docs.netlify.com/routing/headers/#syntax-for-the-netlify-configuration-file) with slightly more powerful [Glob matching](https://github.com/gobwas/glob): {{< code-toggle file="config">}} diff --git a/content/en/getting-started/installing.md b/content/en/getting-started/installing.md index ae3fe7f9a..cf1dfed26 100644 --- a/content/en/getting-started/installing.md +++ b/content/en/getting-started/installing.md @@ -552,7 +552,6 @@ Now that you've installed Hugo, read the [Quick Start guide][quickstart] and exp [installgo]: https://golang.org/dl/ [linuxbrew]: https://docs.brew.sh/Homebrew-on-Linux [Path Editor]: https://patheditor2.codeplex.com/ -[pygments]: https://pygments.org [quickstart]: /getting-started/quick-start/ [redhatforum]: https://discourse.gohugo.io/t/solved-fedora-copr-repository-out-of-service/2491 [releases]: https://github.com/gohugoio/hugo/releases diff --git a/content/en/getting-started/quick-start.md b/content/en/getting-started/quick-start.md index 6d8f2b1fc..662138ae6 100644 --- a/content/en/getting-started/quick-start.md +++ b/content/en/getting-started/quick-start.md @@ -23,7 +23,7 @@ This quick start uses `macOS` in the examples. For instructions about how to ins It is recommended to have [Git installed](https://git-scm.com/downloads) to run this tutorial. -For other approaches learning Hugo like book or a video tutorial refer to the [external learning resources](/getting-started/external-learning-resources/) page. +For other approaches to learning Hugo (like books or video tutorials), refer to the [external learning resources](/getting-started/external-learning-resources/) page. {{% /note %}} ## Step 1: Install Hugo @@ -140,7 +140,7 @@ Press Ctrl+C to stop **Navigate to your new site at [http://localhost:1313/](http://localhost:1313/).** -Feel free to edit or add new content and simply refresh in browser to see changes quickly (You might need to force refresh in webbrowser, something like Ctrl-R usually works). +Feel free to edit or add new content and simply refresh in browser to see changes quickly. (You might need to force refresh your web browser, something like Ctrl-R usually works.) ## Step 6: Customize the Theme diff --git a/content/en/getting-started/usage.md b/content/en/getting-started/usage.md index 32c270270..96ecb930a 100644 --- a/content/en/getting-started/usage.md +++ b/content/en/getting-started/usage.md @@ -176,7 +176,7 @@ Fortunately Hugo has an easy, embedded and simple solution for this. It's the fl LiveReload works by injecting JavaScript into the pages Hugo generates. The script creates a connection from the browser's web socket client to the Hugo web socket server. -LiveReload is awesome for development. However, some Hugo users may use `hugo server` in production to instantly display updated content. The following methods make it easy to disable LiveReload: +The following methods make it easy to disable LiveReload: ``` hugo server --watch=false diff --git a/content/en/hosting-and-deployment/deployment-with-wercker.md b/content/en/hosting-and-deployment/deployment-with-wercker.md deleted file mode 100644 index fcd0ea808..000000000 --- a/content/en/hosting-and-deployment/deployment-with-wercker.md +++ /dev/null @@ -1,321 +0,0 @@ ---- -title: Deployment with Wercker -linktitle: Deployment with Wercker -description: You can use a free tool called Wercker to automate deployments between your GitHub-hosted source and final website on GitHub pages. -date: 2017-02-01 -publishdate: 2017-02-01 -lastmod: 2017-02-01 -categories: [hosting and deployment] -keywords: [wercker,deployment,github,git] -authors: [Arjen Schwarz, Samuel Debruyn] -menu: - docs: - parent: "hosting-and-deployment" - weight: 60 -weight: 60 -sections_weight: 60 -draft: false -aliases: [/tutorials/automated-deployments/] -toc: true -wip: false -notesforauthors: ---- - -## Goals - -By the end of this guide, you will have completed the following: - -* Creating a basic Hugo project and website -* Version controlling your project with Git -* Adding your project to GitHub -* Automating site deployments with a free tool called Wercker -* Deploying your website to GitHub Pages for free hosting - -## Assumptions - -1. You have a working familiarity with using Git for version control -2. You have a GitHub account -3. You have already created a basic Hugo project - -If you do not meet these assumptions, the [GitHub help section][githubhelp] has an explanation of how to install and use git. [Signing up for a GitHub][ghsignup] account is free as well. If you are completely unfamiliar with creating a new Hugo website, visit the [Hugo Quick Start][quickstart]. - -## Create a Basic Hugo Site - -{{% note "This Guide Uses the Hugo CLI" %}} -All the work for setting up a Hugo project and using this guide is done via the Hugo CLI's most basic commands. See the [command line reference page](/commands/) for a more exhaustive account of the CLI's features. -{{% /note %}} - -First, create your new Hugo website using the [`hugo new site` command][basicusage] and change into the newly created directory for the project. In this guide, we are calling our new project `hugo-wercker-example`: - -{{< code file="hugo-new-site.sh" >}} -hugo new site hugo-wercker-example -cd hugo-wercker-example -{{< /code >}} - -We will use the [Herring Cove theme][] by first cloning the theme into the `themes` directory. - -{{< code file="clone-herring-cove-theme.sh" >}} -cd themes -git clone https://github.com/spf13/herring-cove.git -{{< /code >}} - -Cloning the project from the command line will conflict with our own version control. So, we need to remove the external git configuration that came with the clone of Herring Cove: - -{{< code file="remove-herring-cove-git.sh" >}} -rm -rf herring-cove/.git -{{< /code >}} - -We need content for Hugo to build. Let's add a quick `/about` page: - -``` -hugo new about.md -``` - -{{% note %}} -The preceding example for the about page leverages archetypes to scaffold a new content file with preconfigured front matter. [Find out more about Hugo's archetypes](/content-management/archetypes/). -{{% /note %}} - -Now you can edit `contents/about.md` in your text editor of choice, but this is not necessary for the purposes of this guide. Running the following command will build your Hugo site into the `public` directory. - -Once the website is build, it's a good idea to run the following command to start a local server and ensure you're changes have been implemented: - -``` -hugo server --theme=herring-cove -``` - -If everything is fine, you should see something similar to the image below when you go to{{ index .Site.Data.User0123 "Short Description" | markdownify }}