Page configuration options in the theme
Get to know all the page-level configuration relevant to Vibrant Shadows Hugo theme.
‘Page paremeters’ relate to the particular content file in whose front-matter they are defined.
Page Parameters
These options can be set from a page front-matter or via archetypes (i.e. when you create a new content file via hugo new
command).
-
Title (Type: String | Accepts value: Text | Required)
It is the title of the current page/post you are writing.
Example:
title: "A post that takes you into space"
-
Description (Type: String | Accepts value: Text | Required)
It is the description of the current page/post. Recommended character length: 50 to 160
Example:
description: "A short yet descriptive text that relates to this post."
-
Date (Type: String | Accepts value: Date | Required)
It is the date on which current page/post is published.
Example:
date: "2021-04-26" # YYYY-MM-DD
-
Last Modified (Type: String | Accepts value: Date | Required)
It is the date on which current post was last modified.
Example:
lastmod: "2021-04-29"
-
Tags/Categories/Custom-Taxonomy (Type: Array/String | Accepts value: Text | Recommended)
You can manage and organise you posts based on tags, categories or any other custom taxonomy.
Example:
tags: ["great post", "awesome"] # multiple elements categories: "category" # single element
-
Image (Type: String | Accepts value: Path to Image | Recommended)
You can specify path to an image dedicated to current post. This image is used to optimize the display of content when shared on social media.
Example:
image: "/images/post-1.png"
-
Author (Type: String | Accepts value: Text | Recommended)
It is the name of the author of the current post.
Example:
author: "Great Author"
-
Author Twitter Handle (Type: String | Accepts value: Text | Recommended)
It is the Twitter handle of the author of the current post, without ‘@’. This option is theme specific.
Example:
author_twitter: "Gr8Authr" # this is just an example
-
Draft (Type: Boolean | Accepts value: true/false | Optional)
If it is set to
true
, the content will not be rendered unless the--buildDrafts
flag is passed to thehugo
command.Example:
draft: true
-
Table of Contents (Type: boolean/String | Accepts value: true/false | Optional)
If set to
false
, Table of Content for current post will not be rendered.Example:
toc: false
-
Aliases (Type: Array | Accepts value: Relative URL | Optional)
It stores other URLs (in relative form) - usually older URLs for current post - which you would like to redirect to current post.
Example:
aliases: ["/posts/my-original-url/", "/2010/01/01/even-earlier-url.html"]
-
URL (Type: String | Accepts value: Relative URL | Optional)
If you want to specify a custom URL for this post other than the one automatically generated by hugo based on content directory structure, you can specify it in this parameter.
Example:
url: "/custom/url/"