1
0
Fork 0
hugo/docs/content/en/methods/page/Description.md

28 lines
729 B
Markdown

---
title: Description
description: Returns the description of the given page as defined in front matter.
categories: []
keywords: []
params:
functions_and_methods:
returnType: string
signatures: [PAGE.Description]
---
Conceptually different from a [content summary], a page description is typically used in metadata about the page.
{{< code-toggle file=content/recipes/sushi.md fm=true >}}
title = 'How to make spicy tuna hand rolls'
description = 'Instructions for making spicy tuna hand rolls.'
{{< /code-toggle >}}
```go-html-template {file="layouts/_default/baseof.html"}
<head>
...
<meta name="description" content="{{ .Description }}">
...
</head>
```
[content summary]: /content-management/summaries/