Description
返回 front matter 中定义的给定页面的描述。
Syntax
PAGE.Description
Returns
string
与 内容摘要 概念不同,页面描述通常用于页面的元数据。
---
description: Instructions for making spicy tuna hand rolls.
title: How to make spicy tuna hand rolls
---+++
description = 'Instructions for making spicy tuna hand rolls.'
title = 'How to make spicy tuna hand rolls'
+++{
"description": "Instructions for making spicy tuna hand rolls.",
"title": "How to make spicy tuna hand rolls"
}
layouts/baseof.html
<head>
...
<meta name="description" content="{{ .Description }}">
...
</head>