Featured image of post hugo用法

hugo用法

记录文章语法、图片等用法

hugo new post/test/index.md

FrontMatter 字段

字段 介绍 默认值
description 文章简介
image 特色图片
comments 显示 / 隐藏评论区 true
license 文章协议 输入 false 可以隐藏 params.article.license.default
hidden 隐藏文章(不在首页,归档等页面显示,但是可以直接通过链接访问) false
math 加载 KaTeX 脚本
toc 显示 / 隐藏目录 params.article.toc
lastmod 最后更改时间

图片

Photo by Florian Klauer on Unsplash Photo by Luca Bravo on Unsplash

Photo by Helena Hertz on Unsplash Photo by Hudai Gayiran on Unsplash

![Photo by Florian Klauer on Unsplash](florian-klauer-nptLmg6jqDo-unsplash.jpg) ![Photo by Luca Bravo on Unsplash](luca-bravo-alS7ewQ41M8-unsplash.jpg)

![Photo by Helena Hertz on Unsplash](helena-hertz-wWZzXlDpMog-unsplash.jpg) ![Photo by Hudai Gayiran on Unsplash](hudai-gayiran-3Od_VKcDEAA-unsplash.jpg)

相册语法来自 Typlog

插入网络视频

Shortcode

Math 数学公式

Block math:

$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$

图标来源

Tabler Icons

Licensed under CC BY-NC-SA 4.0