Browse files

Document "images", "videos", etc. in front-matter

Fixes #319
Adds documentation for "images", "videos", "audio", and "series".
  • Loading branch information...
NotWoods authored and bep committed Oct 14, 2018
1 parent 6a85b5d commit f4d624da3297fc2082b54e9c4f2864736fd5c106
Showing with 12 additions and 0 deletions.
  1. +12 −0 content/en/content-management/
@@ -59,6 +59,9 @@ There are a few predefined variables that Hugo is aware of. See [Page Variables]
: an array of one or more aliases (e.g., old published paths of renamed content) that will be created in the output directory structure . See [Aliases][aliases] for details.

This comment has been minimized.


kaushalmodi Oct 14, 2018


The "audio" front-matter is not an array in the current opengraph to definition; it's just a string. @bep that should be fixed in the template?

: an array of paths to audio files related to the page; used by the `opengraph` [internal template](/templates/internal) to populate `og:audio`.
: the datetime at which the content was created; note this value is auto-populated according to Hugo's built-in [archetype][].
@@ -74,6 +77,9 @@ expiryDate
: if `true`, sets a leaf bundle to be [headless][headless-bundle].
: an array of paths to images related to the page; used by [internal templates](/templates/internal) such as `_internal/twitter_cards.html`.
: if `true`, Hugo will explicitly treat the content as a CJK language; both `.Summary` and `.WordCount` work properly in CJK languages.
@@ -101,6 +107,9 @@ publishDate
: used for configuring page bundle resources. See [Page Resources][page-resources].
: an array of series this page belongs to, as a subset of the `series` [taxonomy](/content-management/taxonomies/); used by the `opengraph` [internal template](/templates/internal) to populate `og:see_also`.
: appears as the tail of the output URL. A value specified in front matter will override the segment of the URL based on the filename.
@@ -114,6 +123,9 @@ url
: the full path to the content from the web root. It makes no assumptions about the path of the content file. It also ignores any language prefixes of
the multilingual feature.
: an array of paths to videos related to the page; used by the `opengraph` [internal template](/templates/internal) to populate `og:video`.
: used for [ordering your content in lists][ordering]. Lower weight gets higher precedence. So content with lower weight will come first.

0 comments on commit f4d624d

Please sign in to comment.