# Error with config.yaml format

**URL:** <https://discourse.gohugo.io/t/error-with-config-yaml-format/4989>\
**Category:** support\
**Created:** [January 2, 2017, 3:08pm UTC](https://discourse.gohugo.io/t/error-with-config-yaml-format/4989 "2017-01-02T15:08:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vsopvsop](https://avatars.discourse-cdn.com/v4/letter/v/ad7895/32.png) [@vsopvsop](https://discourse.gohugo.io/u/vsopvsop)\
**Post date:** [January 2, 2017, 3:08pm UTC](https://discourse.gohugo.io/t/error-with-config-yaml-format/4989/1 "2017-01-02T15:08:20Z")

</div>

I develop with yaml as config file format

config file entry

description: dowdow

* * *

layouts/index.html entry

```
<title>{{ .Site.Title }}</title>

```

{{.Site.Title}}  
{{ .Site.Description }}  

* * *

error while compiling with hugodev

ERROR: 2017/01/02 20:36:43 general.go:236: Error while rendering "page ": template: index.html:10:8: executing “index.html” at \<.Site.Description\>: can’t evaluate field Description in type \*hugolib.SiteInfo

What mistake I am committing. Please help.

.site.title rendering.

.site.description not rendering. that output line is blank.

Hugo Static Site Generator v0.19-DEV BuildDate: 2016-12-30T09:07:33+05:30

---

<div class="post-metadata">

**Author:** ![digitalcraftsman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/digitalcraftsman/32/4142_2.png) [@digitalcraftsman](https://discourse.gohugo.io/u/digitalcraftsman)\
**Post date:** [January 2, 2017, 3:18pm UTC](https://discourse.gohugo.io/t/error-with-config-yaml-format/4989/2 "2017-01-02T15:18:35Z")

</div>

Try `{{ .Description }}` instead of `{{ .Site.Description }}`

---

<div class="post-metadata">

**Author:** ![vsopvsop](https://avatars.discourse-cdn.com/v4/letter/v/ad7895/32.png) [@vsopvsop](https://discourse.gohugo.io/u/vsopvsop)\
**Post date:** [January 2, 2017, 5:10pm UTC](https://discourse.gohugo.io/t/error-with-config-yaml-format/4989/3 "2017-01-02T17:10:28Z")

</div>

> [@vsopvsop](#):
>
> .site.description not rendering. that output line is blank.

While .site.description gives the above error while compiling the site,  
just {{.Description}} compiles without error even in verbose mode, but the output for that field is blank space.

\<i have tried this many times with latest hugo.

@digitalcrafrsman - I take this opportunity to thank you for your ealier help regarding compiling latest docs which worked for me. 🙂

---

<div class="post-metadata">

**Author:** ![vsopvsop](https://avatars.discourse-cdn.com/v4/letter/v/ad7895/32.png) [@vsopvsop](https://discourse.gohugo.io/u/vsopvsop)\
**Post date:** [January 2, 2017, 5:33pm UTC](https://discourse.gohugo.io/t/error-with-config-yaml-format/4989/4 "2017-01-02T17:33:55Z")

</div>

I had solved it myself looking at the docs.

I had to mention description like this in config.yaml

params:  
description: dowdow

and then refer that in layouts/index.html as

{{,Site.Params.Description}}

site.description  
or  
.description

dont work here.

Thanks.

---

<div class="post-metadata">

**Author:** ![digitalcraftsman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/digitalcraftsman/32/4142_2.png) [@digitalcraftsman](https://discourse.gohugo.io/u/digitalcraftsman)\
**Post date:** [January 2, 2017, 6:47pm UTC](https://discourse.gohugo.io/t/error-with-config-yaml-format/4989/5 "2017-01-02T18:47:33Z")

</div>

> [@vsopvsop](#):
>
> I had to mention description like this in config.yaml
> 
> params: description: dowdow

That’s indeed an important detail as you already noticed ;I[quote=“vsopvsop, post:4, topic:4989”]  
site.descriptionor  
or  
.description

dont work here.  
[/quote]

`.Description` can be used if your define in the config file globally (outside blocks like `params`).
