Fix some typos

This commit is contained in:
Zhang Liang 2018-03-11 00:44:35 +08:00 committed by Bjørn Erik Pedersen
parent d23d8f5c42
commit 4e7e1815b7

View File

@ -25,7 +25,7 @@ toc: true
For example, the following fields would be available in `layouts/_defaults/terms.html`, depending on how you organize your [taxonomy templates][taxonomytemplates]: For example, the following fields would be available in `layouts/_defaults/terms.html`, depending on how you organize your [taxonomy templates][taxonomytemplates]:
.Data.Singular .Data.Singular
: The singular name of the taxonomy (e.g., `tags => `tag`) : The singular name of the taxonomy (e.g., `tags => tag`)
.Data.Plural .Data.Plural
: The plural name of the taxonomy (e.g., `tags => tags`) : The plural name of the taxonomy (e.g., `tags => tags`)
@ -49,7 +49,7 @@ Note that `.Data.Terms.Alphabetical` and `.Data.Terms.ByCount` can also be rever
## Use `.Site.Taxonomies` Outside of Taxonomy Templates ## Use `.Site.Taxonomies` Outside of Taxonomy Templates
The `.Site.Taxonomies` variable holds all the taxonomies defined site-wide. `.Site.Taxonomies` is a map of the taxonomy name to a list of its values (e.g., `"tags" -> ["tag1", "tag2", "tag3"]``). Each value, though, is not a string but rather a *Taxonomy variable*. The `.Site.Taxonomies` variable holds all the taxonomies defined site-wide. `.Site.Taxonomies` is a map of the taxonomy name to a list of its values (e.g., `"tags" -> ["tag1", "tag2", "tag3"]`). Each value, though, is not a string but rather a *Taxonomy variable*.
## The `.Taxonomy` Variable ## The `.Taxonomy` Variable
@ -81,4 +81,4 @@ The following [partial template][partials] will list all your site's taxonomies,
{{< /code >}} {{< /code >}}
[partials]: /templates/partials/ [partials]: /templates/partials/
[taxonomytemplates]: /templates/taxonomy-templates/ [taxonomytemplates]: /templates/taxonomy-templates/