Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-07-07 08:00:01 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-07-07 08:00:01 +0300
commitf1916f114b288a8e8598bbcbeeba95fbcea6afb3 (patch)
treea2986e45da0b513636f18afae022c3cd92c33005 /docs
parent12a65e76df9470d9563b91a22969ddb41b7c19aa (diff)
parent6aa5c9117fd34644459ea9bcfb1b3f5010658d5d (diff)
Merge commit '6aa5c9117fd34644459ea9bcfb1b3f5010658d5d'
Diffstat (limited to 'docs')
-rw-r--r--docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/output/css/app.css2
-rw-r--r--docs/content/en/content-management/front-matter.md2
-rw-r--r--docs/content/en/content-management/taxonomies.md12
-rw-r--r--docs/content/en/getting-started/configuration.md4
-rw-r--r--docs/content/en/getting-started/installing.md2
-rw-r--r--docs/content/en/getting-started/quick-start.md2
-rw-r--r--docs/content/en/hosting-and-deployment/hosting-on-github.md1
-rw-r--r--docs/content/en/news/0.73.0-relnotes/hugo-73-featured.pngbin0 -> 186170 bytes
-rw-r--r--docs/content/en/news/0.73.0-relnotes/index.md11
-rw-r--r--docs/layouts/shortcodes/gomodules-info.html2
-rw-r--r--docs/layouts/shortcodes/page-kinds.html2
-rw-r--r--docs/netlify.toml8
-rw-r--r--docs/resources/_gen/images/news/0.73.0-relnotes/hugo-73-featured_hu7b5b76bcc722e972da8ed35f022034d1_186170_480x0_resize_catmullrom_2.pngbin0 -> 72157 bytes
-rw-r--r--docs/resources/_gen/images/news/0.73.0-relnotes/hugo-73-featured_hu7b5b76bcc722e972da8ed35f022034d1_186170_640x0_resize_catmullrom_2.pngbin0 -> 119653 bytes
14 files changed, 22 insertions, 26 deletions
diff --git a/docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/output/css/app.css b/docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/output/css/app.css
index c08fbc9dc..baf3278b0 100644
--- a/docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/output/css/app.css
+++ b/docs/_vendor/github.com/gohugoio/gohugoioTheme/assets/output/css/app.css
@@ -4828,7 +4828,7 @@ pre {
right: 50%;*/
/*margin-left: -30vw;*/
margin-right: -30vw;
- max-width: 100vw;
+ max-width: 48vw;
}
}
.code-block .line-numbers-rows {
diff --git a/docs/content/en/content-management/front-matter.md b/docs/content/en/content-management/front-matter.md
index b6276a439..a14cb3065 100644
--- a/docs/content/en/content-management/front-matter.md
+++ b/docs/content/en/content-management/front-matter.md
@@ -135,7 +135,7 @@ videos
: an array of paths to videos related to the page; used by the `opengraph` [internal template](/templates/internal) to populate `og:video`.
weight
-: used for [ordering your content in lists][ordering]. Lower weight gets higher precedence. So content with lower weight will come first.
+: used for [ordering your content in lists][ordering]. Lower weight gets higher precedence. So content with lower weight will come first. If set, weights should be non-zero, as 0 is interpreted as an *unset* weight.
\<taxonomies\>
: field name of the *plural* form of the index. See `tags` and `categories` in the above front matter examples. _Note that the plural form of user-defined taxonomies cannot be the same as any of the predefined front matter variables._
diff --git a/docs/content/en/content-management/taxonomies.md b/docs/content/en/content-management/taxonomies.md
index 869193cb3..f5ee00cd3 100644
--- a/docs/content/en/content-management/taxonomies.md
+++ b/docs/content/en/content-management/taxonomies.md
@@ -100,7 +100,7 @@ disableKinds = ["taxonomy","term"]
{{< new-in "0.73.0" >}} We have fixed the before confusing page kinds used for taxonomies (see the listing below) to be in line with the terms used when we talk about taxonomies. We have been careful to avoid site breakage, and you should get an ERROR in the console if you need to adjust your `disableKinds` section.
-{{< page-kinds >}}
+{{% page-kinds %}}
### Default Destinations
@@ -194,13 +194,13 @@ Currently taxonomies only support the [default `weight => date` ordering of list
## Add custom metadata a Taxonomy or Term
-If you need to add custom metadata to your taxonomy terms, you will need to create a page for that term at `/content/<TAXONOMY>/<TERM>/_index.md` and add your metadata in it's front matter. Continuing with our 'Actors' example, let's say you want to add a wikipedia page link to each actor. Your terms pages would be something like this:
+If you need to add custom metadata to your taxonomy terms, you will need to create a page for that term at `/content/<TAXONOMY>/<TERM>/_index.md` and add your metadata in it's front matter. Continuing with our 'Actors' example, let's say you want to add a Wikipedia page link to each actor. Your terms pages would be something like this:
{{< code file="/content/actors/bruce-willis/_index.md" >}}
- ---
- title: "Bruce Willis"
- wikipedia: "https://en.wikipedia.org/wiki/Bruce_Willis"
- ---
+---
+title: "Bruce Willis"
+wikipedia: "https://en.wikipedia.org/wiki/Bruce_Willis"
+---
{{< /code >}}
diff --git a/docs/content/en/getting-started/configuration.md b/docs/content/en/getting-started/configuration.md
index ffc11938c..076d9161c 100644
--- a/docs/content/en/getting-started/configuration.md
+++ b/docs/content/en/getting-started/configuration.md
@@ -514,7 +514,7 @@ Default configuration:
Since Hugo 0.52 you can configure more than just the `cacheDir`. This is the default configuration:
-```toml
+{{< code-toggle >}}
[caches]
[caches.getjson]
dir = ":cacheDir/:project"
@@ -531,7 +531,7 @@ maxAge = -1
[caches.modules]
dir = ":cacheDir/modules"
maxAge = -1
-```
+{{< /code-toggle >}}
You can override any of these cache settings in your own `config.toml`.
diff --git a/docs/content/en/getting-started/installing.md b/docs/content/en/getting-started/installing.md
index b9c022a73..f92ad21aa 100644
--- a/docs/content/en/getting-started/installing.md
+++ b/docs/content/en/getting-started/installing.md
@@ -46,7 +46,7 @@ Ideally, you should install it somewhere in your `PATH` for easy use. `/usr/loca
### Docker
-We currently do not official Hugo images for Docker, but we do recommend these up to date distributions: https://hub.docker.com/r/klakegg/hugo/
+We currently do not offer official Hugo images for Docker, but we do recommend these up to date distributions: https://hub.docker.com/r/klakegg/hugo/
### Homebrew (macOS)
diff --git a/docs/content/en/getting-started/quick-start.md b/docs/content/en/getting-started/quick-start.md
index 525ff8920..0d79c3ed5 100644
--- a/docs/content/en/getting-started/quick-start.md
+++ b/docs/content/en/getting-started/quick-start.md
@@ -58,7 +58,7 @@ The above will create a new Hugo site in a folder named `quickstart`.
See [themes.gohugo.io](https://themes.gohugo.io/) for a list of themes to consider. This quickstart uses the beautiful [Ananke theme](https://themes.gohugo.io/gohugo-theme-ananke/).
-First, download the theme from GitHub and add it to your site's `theme` directory:
+First, download the theme from GitHub and add it to your site's `themes` directory:
```bash
cd quickstart
diff --git a/docs/content/en/hosting-and-deployment/hosting-on-github.md b/docs/content/en/hosting-and-deployment/hosting-on-github.md
index d8f6699c5..7a15d1b75 100644
--- a/docs/content/en/hosting-and-deployment/hosting-on-github.md
+++ b/docs/content/en/hosting-and-deployment/hosting-on-github.md
@@ -59,6 +59,7 @@ This is a much simpler setup as your Hugo files and generated content are publis
* Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to kill the server
* Before proceeding run `rm -rf public` to completely remove the `public` directory
6. `git submodule add -b master https://github.com/<USERNAME>/<USERNAME>.github.io.git public`. This creates a git [submodule][]. Now when you run the `hugo` command to build your site to `public`, the created `public` directory will have a different remote origin (i.e. hosted GitHub repository).
+7. Make sure the `baseURL` in your config file is updated with: `<USERNAME>.github.io`
### Put it Into a Script
diff --git a/docs/content/en/news/0.73.0-relnotes/hugo-73-featured.png b/docs/content/en/news/0.73.0-relnotes/hugo-73-featured.png
new file mode 100644
index 000000000..92685b15c
--- /dev/null
+++ b/docs/content/en/news/0.73.0-relnotes/hugo-73-featured.png
Binary files differ
diff --git a/docs/content/en/news/0.73.0-relnotes/index.md b/docs/content/en/news/0.73.0-relnotes/index.md
index 20df1b40b..398869e92 100644
--- a/docs/content/en/news/0.73.0-relnotes/index.md
+++ b/docs/content/en/news/0.73.0-relnotes/index.md
@@ -1,12 +1,12 @@
---
date: 2020-06-23
-title: "0.73.0"
-description: "0.73.0"
+title: "Summer Breeze"
+description: "Taxonomy terms cleanup, render hooks per section/type, HMAC function, and more."
categories: ["Releases"]
---
- Again, a release on the small side. Some new features -- one example is that we now support hook templates per section/type, see [#7349](https://github.com/gohugoio/hugo/issues/7349) -- and some important bug fixes.
+Again, a release on the small side. Some new features -- one example is that we now support hook templates per section/type, see [#7349](https://github.com/gohugoio/hugo/issues/7349) -- and some important bug fixes.
But the most important part of this release is that we have now finally cleaned up the terms used for the taxonomy page kinds. This has made the taxonomy feature in Hugo harder to understand than it needed to be. The old/new values for these are `taxonomy` => `term` and `taxonomyTerm` => `taxonomy`. We have taken great care to avoid site breakage. See [#6911](https://github.com/gohugoio/hugo/issues/6911) for more information.
@@ -17,11 +17,6 @@ Many have also been busy writing and fixing the documentation in [hugoDocs](http
which has received **30 contributions by 14 contributors**. A special thanks to christianoliff, bjorn.erik.pedersen, patrick, and hello for their work on the documentation site.
-Hugo now has:
-
-
-* 326+ [themes](http://themes.gohugo.io/)
-
## Notes
* Rename taxonomy kinds from taxonomy to term, taxonomyTerm to taxonomy [#6911](https://github.com/gohugoio/hugo/issues/6911)
diff --git a/docs/layouts/shortcodes/gomodules-info.html b/docs/layouts/shortcodes/gomodules-info.html
index 3c9d486ae..ac51607c5 100644
--- a/docs/layouts/shortcodes/gomodules-info.html
+++ b/docs/layouts/shortcodes/gomodules-info.html
@@ -1,5 +1,5 @@
{{ $text := `
-Most of the commands for **Hugo Modules** requires a newer version of Go installed (see https://golang.org/dl/) and the relevant VCS client (e.g. Git, see https://git-scm.com/downloads). If you have an "older" site running on Netlify, you may have to set GO_VERSION to 1.12 in your Environment settings.
+Most of the commands for **Hugo Modules** requires a newer version of Go installed (see https://golang.org/dl/) and the relevant VCS client (e.g. Git, see https://git-scm.com/downloads/ ). If you have an "older" site running on Netlify, you may have to set GO_VERSION to 1.12 in your Environment settings.
For more information about Go Modules, see:
diff --git a/docs/layouts/shortcodes/page-kinds.html b/docs/layouts/shortcodes/page-kinds.html
index f6cb288af..968a7a5fb 100644
--- a/docs/layouts/shortcodes/page-kinds.html
+++ b/docs/layouts/shortcodes/page-kinds.html
@@ -4,4 +4,4 @@
| `page` | The landing page for a given page | `my-post` page (`/posts/my-post/index.html`) |
| `section` | The landing page of a given section | `posts` section (`/posts/index.html`) |
| `taxonomy` | The landing page for a taxonomy | `tags` taxonomy (`/tags/index.html`) |
-| `term ` | The landing page for one taxonomy's term | term `awesome` in `tags` taxonomy (`/tags/awesome/index.html`) | \ No newline at end of file
+| `term` | The landing page for one taxonomy's term | term `awesome` in `tags` taxonomy (`/tags/awesome/index.html`) |
diff --git a/docs/netlify.toml b/docs/netlify.toml
index daac3cbab..f02fdbf77 100644
--- a/docs/netlify.toml
+++ b/docs/netlify.toml
@@ -3,7 +3,7 @@ publish = "public"
command = "hugo --gc --minify"
[context.production.environment]
-HUGO_VERSION = "0.72.0"
+HUGO_VERSION = "0.73.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
@@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true"
command = "hugo --gc --minify --enableGitInfo"
[context.split1.environment]
-HUGO_VERSION = "0.72.0"
+HUGO_VERSION = "0.73.0"
HUGO_ENV = "production"
[context.deploy-preview]
command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"
[context.deploy-preview.environment]
-HUGO_VERSION = "0.72.0"
+HUGO_VERSION = "0.73.0"
[context.branch-deploy]
command = "hugo --gc --minify -b $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
-HUGO_VERSION = "0.72.0"
+HUGO_VERSION = "0.73.0"
[context.next.environment]
HUGO_ENABLEGITINFO = "true"
diff --git a/docs/resources/_gen/images/news/0.73.0-relnotes/hugo-73-featured_hu7b5b76bcc722e972da8ed35f022034d1_186170_480x0_resize_catmullrom_2.png b/docs/resources/_gen/images/news/0.73.0-relnotes/hugo-73-featured_hu7b5b76bcc722e972da8ed35f022034d1_186170_480x0_resize_catmullrom_2.png
new file mode 100644
index 000000000..98815095d
--- /dev/null
+++ b/docs/resources/_gen/images/news/0.73.0-relnotes/hugo-73-featured_hu7b5b76bcc722e972da8ed35f022034d1_186170_480x0_resize_catmullrom_2.png
Binary files differ
diff --git a/docs/resources/_gen/images/news/0.73.0-relnotes/hugo-73-featured_hu7b5b76bcc722e972da8ed35f022034d1_186170_640x0_resize_catmullrom_2.png b/docs/resources/_gen/images/news/0.73.0-relnotes/hugo-73-featured_hu7b5b76bcc722e972da8ed35f022034d1_186170_640x0_resize_catmullrom_2.png
new file mode 100644
index 000000000..bb33b0642
--- /dev/null
+++ b/docs/resources/_gen/images/news/0.73.0-relnotes/hugo-73-featured_hu7b5b76bcc722e972da8ed35f022034d1_186170_640x0_resize_catmullrom_2.png
Binary files differ