summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-03-11 20:40:26 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-03-11 20:40:26 +0100
commit95d62004a07d8bb6d2b94a56112fd419db7eeb65 (patch)
treeb0958861ece2af8aa1b3e14b604c4c49f0728793 /docs
parent68bf1511f2be39b6576d882d071196e477c72c9f (diff)
parentc0290655825e7bb36e13fb39f89d85b392cf1adc (diff)
Diffstat (limited to 'docs')
-rw-r--r--docs/README.md6
-rw-r--r--docs/content/content-management/archetypes.md171
-rw-r--r--docs/content/content-management/cross-references.md14
-rw-r--r--docs/content/content-management/formats.md4
-rw-r--r--docs/content/content-management/menus.md22
-rw-r--r--docs/content/content-management/page-bundles.md24
-rw-r--r--docs/content/content-management/types.md4
-rw-r--r--docs/content/functions/format.md7
-rw-r--r--docs/content/functions/index-function.md2
-rw-r--r--docs/content/functions/range.md2
-rw-r--r--docs/content/functions/title.md2
-rw-r--r--docs/content/functions/where.md2
-rw-r--r--docs/content/functions/with.md2
-rw-r--r--docs/content/getting-started/configuration.md438
-rw-r--r--docs/content/news/0.37-relnotes/featured-hugo-37-poster.pngbin0 -> 186693 bytes
-rw-r--r--docs/content/news/0.37-relnotes/index.md7
-rw-r--r--docs/content/news/0.37.1-relnotes/index.md6
-rw-r--r--docs/content/showcase/small-multiples/bio.md3
-rw-r--r--docs/content/showcase/small-multiples/featured-small-multiples.pngbin0 -> 374273 bytes
-rw-r--r--docs/content/showcase/small-multiples/index.md47
-rw-r--r--docs/content/templates/data-templates.md2
-rw-r--r--docs/content/templates/lists.md10
-rw-r--r--docs/content/templates/rss.md50
-rw-r--r--docs/content/tools/search.md2
-rw-r--r--docs/content/troubleshooting/faq.md5
-rw-r--r--docs/content/variables/taxonomy.md6
-rw-r--r--docs/data/docs.json186
-rw-r--r--docs/layouts/shortcodes/code.html9
-rw-r--r--docs/netlify.toml8
-rw-r--r--docs/resources/_gen/images/content-management/organization/1-featured-content-bundles_hu3e3ae7839b071119f32acaa20f204198_63640_300x0_resize_catmullrom_2.png (renamed from docs/resources/_gen/images/content-management/organization/1-featured-content-bundles_hu3e3ae7839b071119f32acaa20f204198_63640_300x0_resize_catmullrom.png)bin30621 -> 30621 bytes
-rw-r--r--docs/resources/_gen/images/news/0.33-relnotes/featured-hugo-33-poster_hu45ce9da1cdea6ca61c5f4f5baccdcad4_70230_480x0_resize_catmullrom.pngbin77549 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/news/0.33-relnotes/featured-hugo-33-poster_hu45ce9da1cdea6ca61c5f4f5baccdcad4_70230_480x0_resize_catmullrom_2.pngbin0 -> 31698 bytes
-rw-r--r--docs/resources/_gen/images/news/0.33-relnotes/featured-hugo-33-poster_hu45ce9da1cdea6ca61c5f4f5baccdcad4_70230_640x0_resize_catmullrom.pngbin130881 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/news/0.33-relnotes/featured-hugo-33-poster_hu45ce9da1cdea6ca61c5f4f5baccdcad4_70230_640x0_resize_catmullrom_2.pngbin0 -> 50818 bytes
-rw-r--r--docs/resources/_gen/images/news/0.34-relnotes/featured-34-poster_hud8d73dc5df8d5a35383849a78eea35dd_78317_480x0_resize_catmullrom.pngbin89104 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/news/0.34-relnotes/featured-34-poster_hud8d73dc5df8d5a35383849a78eea35dd_78317_480x0_resize_catmullrom_2.pngbin0 -> 34288 bytes
-rw-r--r--docs/resources/_gen/images/news/0.34-relnotes/featured-34-poster_hud8d73dc5df8d5a35383849a78eea35dd_78317_640x0_resize_catmullrom.pngbin151455 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/news/0.34-relnotes/featured-34-poster_hud8d73dc5df8d5a35383849a78eea35dd_78317_640x0_resize_catmullrom_2.pngbin0 -> 54567 bytes
-rw-r--r--docs/resources/_gen/images/news/0.35-relnotes/featured-hugo-35-poster_hua42b1310dd72f60a34e02851ebf2f82e_88519_480x0_resize_catmullrom.pngbin102051 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/news/0.35-relnotes/featured-hugo-35-poster_hua42b1310dd72f60a34e02851ebf2f82e_88519_480x0_resize_catmullrom_2.pngbin0 -> 37252 bytes
-rw-r--r--docs/resources/_gen/images/news/0.35-relnotes/featured-hugo-35-poster_hua42b1310dd72f60a34e02851ebf2f82e_88519_640x0_resize_catmullrom.pngbin179713 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/news/0.35-relnotes/featured-hugo-35-poster_hua42b1310dd72f60a34e02851ebf2f82e_88519_640x0_resize_catmullrom_2.pngbin0 -> 60111 bytes
-rw-r--r--docs/resources/_gen/images/news/0.36-relnotes/featured-hugo-36-poster_huf2fee368f65c75d3878561ed4225c39a_67640_480x0_resize_catmullrom.pngbin77946 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/news/0.36-relnotes/featured-hugo-36-poster_huf2fee368f65c75d3878561ed4225c39a_67640_480x0_resize_catmullrom_2.pngbin0 -> 30114 bytes
-rw-r--r--docs/resources/_gen/images/news/0.36-relnotes/featured-hugo-36-poster_huf2fee368f65c75d3878561ed4225c39a_67640_640x0_resize_catmullrom.pngbin130419 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/news/0.36-relnotes/featured-hugo-36-poster_huf2fee368f65c75d3878561ed4225c39a_67640_640x0_resize_catmullrom_2.pngbin0 -> 48522 bytes
-rw-r--r--docs/resources/_gen/images/news/0.37-relnotes/featured-hugo-37-poster_hue9685d25c387d657b0640498bf6a10ee_186693_480x0_resize_catmullrom_2.pngbin0 -> 60209 bytes
-rw-r--r--docs/resources/_gen/images/news/0.37-relnotes/featured-hugo-37-poster_hue9685d25c387d657b0640498bf6a10ee_186693_640x0_resize_catmullrom_2.pngbin0 -> 100937 bytes
-rw-r--r--docs/resources/_gen/images/showcase/1password-support/featured_hu870838c23243880857c2e418dd7ac099_165718_1024x512_fill_catmullrom_top.pngbin290059 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/1password-support/featured_hu870838c23243880857c2e418dd7ac099_165718_1024x512_fill_catmullrom_top_2.pngbin0 -> 128594 bytes
-rw-r--r--docs/resources/_gen/images/showcase/1password-support/featured_hu870838c23243880857c2e418dd7ac099_165718_640x0_resize_catmullrom.pngbin107351 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/1password-support/featured_hu870838c23243880857c2e418dd7ac099_165718_640x0_resize_catmullrom_2.pngbin0 -> 52357 bytes
-rw-r--r--docs/resources/_gen/images/showcase/1password-support/featured_hu870838c23243880857c2e418dd7ac099_165718_8714c8c914d32c12c7eb833a42713319.pngbin0 -> 36323 bytes
-rw-r--r--docs/resources/_gen/images/showcase/1password-support/featured_hu870838c23243880857c2e418dd7ac099_165718_8b32e959be6137399a224ecc56caffb1.pngbin72430 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/hartwell-insurance/featured_hu642e730c6f819b15fc6ebbaa25b0243f_446603_02c2d5bfbe1f2c621df733e4d040574d.pngbin143056 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/hartwell-insurance/featured_hu642e730c6f819b15fc6ebbaa25b0243f_446603_1024x512_fill_catmullrom_top.pngbin474464 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/hartwell-insurance/featured_hu642e730c6f819b15fc6ebbaa25b0243f_446603_1024x512_fill_catmullrom_top_2.pngbin0 -> 283187 bytes
-rw-r--r--docs/resources/_gen/images/showcase/hartwell-insurance/featured_hu642e730c6f819b15fc6ebbaa25b0243f_446603_640x0_resize_catmullrom.pngbin210913 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/hartwell-insurance/featured_hu642e730c6f819b15fc6ebbaa25b0243f_446603_640x0_resize_catmullrom_2.pngbin0 -> 119036 bytes
-rw-r--r--docs/resources/_gen/images/showcase/hartwell-insurance/featured_hu642e730c6f819b15fc6ebbaa25b0243f_446603_a6f43693b7589a8d91c844654967eb51.pngbin0 -> 78247 bytes
-rw-r--r--docs/resources/_gen/images/showcase/linode/featured_hu6acc14b2375e47c4c764fef09fdb54c0_126664_1024x512_fill_catmullrom_top_2.png (renamed from docs/resources/_gen/images/showcase/linode/featured_hu6acc14b2375e47c4c764fef09fdb54c0_126664_1024x512_fill_catmullrom_top.png)bin57772 -> 57772 bytes
-rw-r--r--docs/resources/_gen/images/showcase/linode/featured_hu6acc14b2375e47c4c764fef09fdb54c0_126664_640x0_resize_catmullrom_2.png (renamed from docs/resources/_gen/images/showcase/linode/featured_hu6acc14b2375e47c4c764fef09fdb54c0_126664_640x0_resize_catmullrom.png)bin29073 -> 29073 bytes
-rw-r--r--docs/resources/_gen/images/showcase/linode/featured_hu6acc14b2375e47c4c764fef09fdb54c0_126664_97b33e8221e700cd517d4ce317c69e48.png (renamed from docs/resources/_gen/images/showcase/linode/featured_hu6acc14b2375e47c4c764fef09fdb54c0_126664_7af7b624b13f6554ad54ee33f84bf08e.png)bin21333 -> 21333 bytes
-rw-r--r--docs/resources/_gen/images/showcase/pace-revenue-management/featured_hu143b6afebcd8780a08aa0a9f8e95dd02_298908_1024x512_fill_catmullrom_top_2.png (renamed from docs/resources/_gen/images/showcase/pace-revenue-management/featured_hu143b6afebcd8780a08aa0a9f8e95dd02_298908_1024x512_fill_catmullrom_top.png)bin169210 -> 169210 bytes
-rw-r--r--docs/resources/_gen/images/showcase/pace-revenue-management/featured_hu143b6afebcd8780a08aa0a9f8e95dd02_298908_640x0_resize_catmullrom_2.png (renamed from docs/resources/_gen/images/showcase/pace-revenue-management/featured_hu143b6afebcd8780a08aa0a9f8e95dd02_298908_640x0_resize_catmullrom.png)bin77047 -> 77047 bytes
-rw-r--r--docs/resources/_gen/images/showcase/pace-revenue-management/featured_hu143b6afebcd8780a08aa0a9f8e95dd02_298908_7e3f008d047fb3522bf02df4e9229522.pngbin0 -> 53399 bytes
-rw-r--r--docs/resources/_gen/images/showcase/pace-revenue-management/featured_hu143b6afebcd8780a08aa0a9f8e95dd02_298908_978ff9297dc1d5096773813d2df58a6f.pngbin54014 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/quiply-employee-communications-app/featured_hua0e0d1ed0f0bc15921e78476b0c86c95_631206_1024x512_fill_catmullrom_top_2.png (renamed from docs/resources/_gen/images/showcase/quiply-employee-communications-app/featured_hua0e0d1ed0f0bc15921e78476b0c86c95_631206_1024x512_fill_catmullrom_top.png)bin280168 -> 280168 bytes
-rw-r--r--docs/resources/_gen/images/showcase/quiply-employee-communications-app/featured_hua0e0d1ed0f0bc15921e78476b0c86c95_631206_3b6053b86d6afebe8262ece1955ed6cf.pngbin0 -> 89438 bytes
-rw-r--r--docs/resources/_gen/images/showcase/quiply-employee-communications-app/featured_hua0e0d1ed0f0bc15921e78476b0c86c95_631206_640x0_resize_catmullrom_2.png (renamed from docs/resources/_gen/images/showcase/quiply-employee-communications-app/featured_hua0e0d1ed0f0bc15921e78476b0c86c95_631206_640x0_resize_catmullrom.png)bin129787 -> 129787 bytes
-rw-r--r--docs/resources/_gen/images/showcase/quiply-employee-communications-app/featured_hua0e0d1ed0f0bc15921e78476b0c86c95_631206_9a216d034e8628dd139a6a7fa62712b4.pngbin90077 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/stackimpact/featured_hu863cdba7b6e18bb95f64289a25912f5c_153794_1024x512_fill_catmullrom_top.pngbin187835 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/stackimpact/featured_hu863cdba7b6e18bb95f64289a25912f5c_153794_1024x512_fill_catmullrom_top_2.pngbin0 -> 97618 bytes
-rw-r--r--docs/resources/_gen/images/showcase/stackimpact/featured_hu863cdba7b6e18bb95f64289a25912f5c_153794_5f4044a9cb8ece7d6e61bd0e0fb32a0d.pngbin63795 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/stackimpact/featured_hu863cdba7b6e18bb95f64289a25912f5c_153794_640x0_resize_catmullrom.pngbin91851 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/stackimpact/featured_hu863cdba7b6e18bb95f64289a25912f5c_153794_640x0_resize_catmullrom_2.pngbin0 -> 47639 bytes
-rw-r--r--docs/resources/_gen/images/showcase/stackimpact/featured_hu863cdba7b6e18bb95f64289a25912f5c_153794_671a5c232ffa27a2cf198d2c39f253eb.pngbin0 -> 33218 bytes
-rw-r--r--docs/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_0be9b039f9029effab69b9239e224cf7.pngbin0 -> 10934 bytes
-rw-r--r--docs/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_1024x512_fill_catmullrom_top.pngbin78628 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_1024x512_fill_catmullrom_top_2.pngbin0 -> 30468 bytes
-rw-r--r--docs/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_34aaa1bbe5cc1b4798bfff8f28e1033e.pngbin27837 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_640x0_resize_catmullrom.pngbin38945 -> 0 bytes
-rw-r--r--docs/resources/_gen/images/showcase/template/featured-template_hu2f0d11388f944348b232a431caeb965b_41270_640x0_resize_catmullrom_2.pngbin0 -> 15064 bytes
-rw-r--r--docs/themes/gohugoioTheme/data/sponsors.toml6
-rw-r--r--docs/themes/gohugoioTheme/layouts/partials/gtag.html4
-rwxr-xr-xdocs/themes/gohugoioTheme/static/images/gopher-side_color.svg (renamed from docs/static/images/gopher-side_color.svg)0
-rw-r--r--docs/themes/gohugoioTheme/static/images/sponsors/forestry-logotype.svg2
-rw-r--r--docs/themes/gohugoioTheme/static/images/sponsors/linode-logo_standard_light_medium.pngbin0 -> 30887 bytes
88 files changed, 506 insertions, 547 deletions
diff --git a/docs/README.md b/docs/README.md
index d82776de3..5f47e8a1e 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -10,6 +10,12 @@ Note that this repository contains solely the documentation for Hugo. For contri
*Pull requests shall **only** contain changes to the actual documentation. However, changes on the code base of Hugo **and** the documentation shall be a single, atomic pull request in the [hugo](https://github.com/gohugoio/hugo) repository.*
+Spelling fixes are most welcomed, and if you want to contribute longer sections to the documentation, it would be great if you had these in mind when writing:
+
+* Short is good. People go to the library to read novels. If there is more than one way to _do a thing_ in Hugo, describe the current _best practice_ (avoid "… but you can also do …" and "… in older versions of Hugo you had to …".
+* For examples, try to find short snippets that teaches people about the concept. If the example is also useful as-is (copy and paste), then great, but don't list long and similar examples just so people can use them on their sites.
+* Hugo has users from all over the world, so an easy to understand and [simple English](https://simple.wikipedia.org/wiki/Basic_English) is good.
+
## Branches
* The `master` branch is where the site is automatically built from, and is the place to put changes relevant to the current Hugo version.
diff --git a/docs/content/content-management/archetypes.md b/docs/content/content-management/archetypes.md
index 269fda6db..902373d83 100644
--- a/docs/content/content-management/archetypes.md
+++ b/docs/content/content-management/archetypes.md
@@ -1,10 +1,9 @@
---
title: Archetypes
linktitle: Archetypes
-description: Archetypes allow you to create new instances of content types and set default parameters from the command line.
+description: Archetypes are templates used when creating new content.
date: 2017-02-01
publishdate: 2017-02-01
-lastmod: 2017-02-01
keywords: [archetypes,generators,metadata,front matter]
categories: ["content management"]
menu:
@@ -18,175 +17,59 @@ aliases: [/content/archetypes/]
toc: true
---
-{{% note %}}
-This section is outdated, see https://github.com/gohugoio/hugoDocs/issues/11
-{{% /note %}}
-{{% todo %}}
-See above
-{{% /todo %}}
-
## What are Archetypes?
-**Archetypes** are content files in the [archetypes directory][] of your project that contain preconfigured [front matter][] for your website's [content types][]. Archetypes facilitate consistent metadata across your website content and allow content authors to quickly generate instances of a content type via the `hugo new` command.
-
-{{< youtube bcme8AzVh6o >}}
-
-The `hugo new` generator for archetypes assumes your working directory is the content folder at the root of your project. Hugo is able to infer the appropriate archetype by assuming the content type from the content section passed to the CLI command:
+**Archetypes** are content template files in the [archetypes directory][] of your project that contain preconfigured [front matter][] and possibly also a content disposition for your website's [content types][]. These will be used when you run `hugo new`.
-```
-hugo new <content-section>/<file-name.md>
-```
-We can use this pattern to create a new `.md` file in the `posts` section:
+The `hugo new` uses the `content-section` to find the most suitable archetype template in your project. If your project does not contain any archetype files, it will also look in the theme.
{{< code file="archetype-example.sh" >}}
hugo new posts/my-first-post.md
{{< /code >}}
-{{% note "Override Content Type in a New File" %}}
-To override the content type Hugo infers from `[content-section]`, add the `--kind` flag to the end of the `hugo new` command.
-{{% /note %}}
-
-Running this command in a new site that does not have default or custom archetypes will create the following file:
-
-{{< output file="content/posts/my-first-post.md" >}}
-+++
-date = "2017-02-01T19:20:04-07:00"
-title = "my first post"
-draft = true
-+++
-{{< /output >}}
-
-{{% note %}}
-In this example, if you do not already have a `content/posts` directory, Hugo will create both `content/posts/` and `content/posts/my-first-post.md` for you.
-{{% /note %}}
-
-The auto-populated fields are worth examining:
-
-* `title` is generated from the new content's filename (i.e. in this case, `my-first-post` becomes `"my first post"`)
-* `date` and `title` are the variables that ship with Hugo and are therefore included in *all* content files created with the Hugo CLI. `date` is generated in [RFC 3339 format][] by way of Go's [`now()`][] function, which returns the current time.
-* The third variable, `draft = true`, is *not* inherited by your default or custom archetypes but is included in Hugo's automatically scaffolded `default.md` archetype for convenience.
-
-Three variables per content file are often not enough for effective content management of larger websites. Luckily, Hugo provides a simple mechanism for extending the number of variables through custom archetypes, as well as default archetypes to keep content creation DRY.
-
-## Lookup Order for Archet