From dca6eabacad428c4c78bc83a0d82126285ba1290 Mon Sep 17 00:00:00 2001 From: philgs Date: Mon, 5 Jan 2015 05:49:10 -0500 Subject: [PATCH] Add config file example to variables.md Add a config file example for setting .Site.Params to variables.md. This addresses my confusion in [issue #766](https://github.com/spf13/hugo/issues/766). --- docs/content/templates/variables.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/content/templates/variables.md b/docs/content/templates/variables.md index 93f5ad02b..e6b6b5a3f 100644 --- a/docs/content/templates/variables.md +++ b/docs/content/templates/variables.md @@ -83,4 +83,10 @@ Also available is `.Site` which has the following: **.Site.Taxonomies** The indexes for the entire site.
**.Site.LastChange** The date of the last change of the most recent content.
**.Site.Recent** Array of all content ordered by Date, newest first.
-**.Site.Params** A container holding the values from `params` in your site configuration file.
+**.Site.Params** A container holding the values from the `params` section of your site configuration file. For example, a TOML config file might look like this: + + baseurl = "http://yoursite.example.com/" + + [params] + description = "Tesla's Awesome Hugo Site" + author = "Nikola Tesla"