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.
|
|
---
marks the start and end of symbolstitle:
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.Defaultmath:
Enable/disable KaTeX rendering.toc:
Show/hide the table of contents of the page. Default: .Site.Params.Article.tocslug:
: 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.ReadingTimeexpiryDate:
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} $$
|
|
reference
https://stack.jimmycai.com/writing/frontmatter
https://www.andbible.com/post/hugo-content-management-front-matter/