diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-10-30 11:50:15 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2020-10-30 11:50:15 +0300 |
commit | 3553fc533a868d0303214e3ae53558e23d09b438 (patch) | |
tree | 58b62b3af796986303c838b88eb34e9544939043 /docs/content/en/content-management | |
parent | 173187e2633f3fc037c83e1e3de2902ae3c93b92 (diff) | |
parent | 9cabb46f68bae01aeb1859727dcb21e8a10f5ec7 (diff) |
Merge commit '9cabb46f68bae01aeb1859727dcb21e8a10f5ec7'
Diffstat (limited to 'docs/content/en/content-management')
4 files changed, 8 insertions, 8 deletions
diff --git a/docs/content/en/content-management/cross-references.md b/docs/content/en/content-management/cross-references.md index 9570a8fa4..9580fd7e5 100644 --- a/docs/content/en/content-management/cross-references.md +++ b/docs/content/en/content-management/cross-references.md @@ -77,9 +77,9 @@ produces this HTML: Get the permalink to a heading by appending the ID to the path when using the `ref` or `relref` shortcodes: -```md -{{</* ref "document.md#reference */>}} -{{</* relref "document.md#reference */>}} +```go-html-template +{{</* ref "document.md#reference" */>}} +{{</* relref "document.md#reference" */>}} ``` Generate a custom heading ID by including an attribute. For example: diff --git a/docs/content/en/content-management/front-matter.md b/docs/content/en/content-management/front-matter.md index 097cf0598..d1b1f20ba 100644 --- a/docs/content/en/content-management/front-matter.md +++ b/docs/content/en/content-management/front-matter.md @@ -182,7 +182,7 @@ kind="section" Keywords available for `_target`: 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. +: 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}". diff --git a/docs/content/en/content-management/multilingual.md b/docs/content/en/content-management/multilingual.md index 224f38d7a..9987bca8c 100644 --- a/docs/content/en/content-management/multilingual.md +++ b/docs/content/en/content-management/multilingual.md @@ -360,7 +360,7 @@ This article has 101 words. ### Query a singular/plural translation -In other to meet singular/plural requirement, you must pass a dictionary (map) data with a numeric `.Count` property to the `i18n` function. The below example uses `.ReadingTime` variable which has a built-in `.Count` property. +In order to meet singular/plural requirement, you must pass a dictionary (map) with a numeric `.Count` property to the `i18n` function. The below example uses `.ReadingTime` variable which has a built-in `.Count` property. ``` {{ i18n "readingTime" .ReadingTime }} @@ -374,7 +374,7 @@ one = "One minute to read" other = "{{.Count}} minutes to read" ``` -Assume `.ReadingTime.Count` in the context has value is 525600. The result will be: +Assume `.ReadingTime.Count` in the context has value of 525600. The result will be: ``` 525600 minutes to read @@ -386,7 +386,7 @@ If `.ReadingTime.Count` in the context has value is 1. The result is: One minutes to read ``` -In case you need to pass a custom data: (`"(dict Count" 25)` is minimum requirment) +In case you need to pass custom data: (`(dict "Count" 25)` is minimum requirement) ``` {{ i18n "readingTime" (dict "Count" 25 "FirstArgument" true "SecondArgument" false "Etc" "so on, so far") }} diff --git a/docs/content/en/content-management/taxonomies.md b/docs/content/en/content-management/taxonomies.md index cefce7d56..e7aa67ea6 100644 --- a/docs/content/en/content-management/taxonomies.md +++ b/docs/content/en/content-management/taxonomies.md @@ -192,7 +192,7 @@ By using taxonomic weight, the same piece of content can appear in different pos Currently taxonomies only support the [default `weight => date` ordering of list content](/templates/lists/#default-weight-date). For more information, see the documentation on [taxonomy templates](/templates/taxonomy-templates/). {{% /note %}} -## Add custom metadata a Taxonomy or Term +## Add custom metadata to 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: |