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>