From 9015aa5b84a1cbe8f9c1e22967faa99c03f5239f Mon Sep 17 00:00:00 2001 From: digitalcraftsman Date: Sat, 30 Jan 2016 11:12:24 +0100 Subject: [PATCH] Docs: fix some typos in templates/variables.md --- docs/content/templates/variables.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/templates/variables.md b/docs/content/templates/variables.md index 18e933f5d..2f0a2279b 100644 --- a/docs/content/templates/variables.md +++ b/docs/content/templates/variables.md @@ -71,13 +71,13 @@ This is particularly useful for the introduction of user defined fields in conte --- ... - affiliatelnk: "http://www.my-book-link.here" + affiliatelink: "http://www.my-book-link.here" recommendedby: "my Mother" --- -Which would then be accessible to a template at /theme/yourtheme/review/single.html, for example, through .Params.affiliatelnk and .Params.recommendedby, respectively. Two common situations where these could be introduced are as a value of a certain attribute (like href="" below) or by itself if it will be displayed. Sample syntaxes include: +Which would then be accessible to a template at `/theme/yourtheme/review/single.html`, for example, through `.Params.affiliatelink` and `.Params.recommendedby`, respectively. Two common situations where these could be introduced are as a value of a certain attribute (like `href=""` below) or by itself if it will be displayed. Sample syntaxes include: -

Buy this book

+

Buy this book

It was recommended by {{ .Params.recommendedby }}.

which would render @@ -85,7 +85,7 @@ which would render

Buy this book

It was recommended by my Mother.

-**See also:** [cross-references]({{% ref "content/archetypes.md" %}}) for consistency of `Params` accross pieces of content. +**See also:** [cross-references]({{% ref "content/archetypes.md" %}}) for consistency of `Params` across pieces of content. ### Param method In Hugo you can declare params both for the site and the individual page. A common use case is to have a general value for the site and a more specific value for some of the pages (i.e. an image).