mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
9b0050e9aa
git-subtree-dir: docs git-subtree-split: 5c085a37b297bf12f59efeaae591418ec025c10d
28 lines
728 B
Markdown
28 lines
728 B
Markdown
---
|
|
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
|