Featured image of post Frontmatter Configs

Frontmatter Configs

Bad memory, so ... use as a backup

yaml 格式的

The following content applies to this site, the built with hugo , theme Stack
If the different languages or frameworks, it is only for reference of other readers.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
---
title: "title"
description: "description"
author: yuki
date: 2021-12-02T13:42:48+08:00
image: https://test.jpg
license: 
math: true
toc: false
slug: test
comments: true
categories: ["syntax"]
tags: ["frontmatter","markdown"]
keywords: ["Frontmatter","markdown"]
readingTime: true
expiryDate: 2023-07-18
hidden: false
draft: false 
---
  • --- marks the start and end of symbols
  • title: The title of the page.
  • description: : Provide a short description or summary of the page.
  • author: The author or list of authors of the page.
  • date: The date of the page.
  • image: : Set the header image or thumbnail of the page.
  • license: The license for the page. If set to false, the license section will be hidden. Default: .Site.Params.Article.License.Default
  • math: Enable/disable KaTeX rendering.
  • toc: Show/hide the table of contents of the page. Default: .Site.Params.Article.toc
  • slug: : Set the custom part of the URL address of the page.
  • comments: Show/hide the comments section of the page.
  • categories: Categorize pages into specific categories.
  • tags: Add tags to the page.
  • keywords: Keywords of the page. Useful for SEO.
  • readingTime: Show/hide the reading time of the page, if false, it will not be displayed in the blog. Default is .Site.Params.Article.ReadingTime
  • expiryDate: After this date, the content will not be published by hugo.
  • hidden: is hidden, if true, it will not be displayed.
  • draft: : Whether to draft, if true, it will not be displayed in the blog.

Note the colons and spaces

math format

$$ x=\frac{-b\pm\sqrt{b^2-4ac}}{2a} $$

1
2
3
$$
x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
$$

reference

https://stack.jimmycai.com/writing/frontmatter
https://www.andbible.com/post/hugo-content-management-front-matter/

Sow nothing, reap nothing.
Built with Hugo Theme Stack designed by Jimmy