Debian Codegraph @

docs/content/en/methods/page/Description.md

raw
1 ---
2 title: Description
3 description: Returns the description of the given page as defined in front matter.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: string
9 signatures: [PAGE.Description]
10 ---
11
12 Conceptually different from a [content summary][], a page description is typically used in metadata about the page.
13
14 {{< code-toggle file=content/recipes/sushi.md fm=true >}}
15 title = 'How to make spicy tuna hand rolls'
16 description = 'Instructions for making spicy tuna hand rolls.'
17 {{< /code-toggle >}}
18
19 ```go-html-template {file="layouts/baseof.html"}
20 <head>
21 ...
22 <meta name="description" content="{{ .Description }}">
23 ...
24 </head>
25 ```
26
27 [content summary]: /content-management/summaries/