aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/en/methods/page/Description.md
blob: fbb43b8b53f43c087f761135a1d7245daa0e650d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: Description
description: Returns the description of the given page as defined in front matter.
categories: []
keywords: []
action:
  related:
    - methods/page/Summary
  returnType: string
  signatures: [PAGE.Description]
---

Conceptually different that 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 >}}

{{< code file=layouts/baseof.html  >}}
<head>
  ...
  <meta name="description" content="{{ .Description }}">
  ...
</head>
{{< /code >}}

[content summary]: /content-management/summaries