HUGO
News Docs Themes Community GitHub

Description

Returns the description of the given page as defined in front matter.

Syntax

PAGE.Description

Returns

string

Conceptually different from a content summary, a page description is typically used in metadata about the page.

+++
description = 'Instructions for making spicy tuna hand rolls.'
title = 'How to make spicy tuna hand rolls'
+++
layouts/_default/baseof.html
<head>
  ...
  <meta name="description" content="{{ .Description }}">
  ...
</head>