Adding meta description tag to Dimension theme

I am trying to add meta description tag to my website that uses Dimension theme.
In the header.html I added this line:

<meta name="description" content="{{.Description}}" />

And in for example test.md files I have something like this:

title: MyTitle
description: this is a meta description

Bue when I build the public folder by typing Hugo this is what I see in test.html:

<!DOCTYPE HTML>

<html>
	<head>
		<title>Gems</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
		<meta name="description" content=this&#32;is&#32;a&#32;meta&#32;description. />
		<link rel="stylesheet" href="/css/main.css" />

What am I doing wrong?

you need to use something like {{ .Description | safeHTML }}

Thanks for the answer. Why do I need to add | safeHTML ?

because otherwise it’ll try to make it look like code instead of properly formatted.

A post was split to a new topic: Meta tags not displaying