Guide to Thumbnails in Hugo
Mon, Mar 4, 2019
One-minute read
Hugo 缩略图尝试, 图片应该每次都从缓存的文件提取,我改变图片的时候,无法实时改变,只好改变文件名来显示
Thumbnails can be enabled easily by setting the thumbnail
parameter in the frontmatter to an image such as "images/landscape.jpg"
.
Make sure to copy the image the static/images/
directory.
If put together, it will look like this (that’s in fact this post’s frontmatter):
+++
author = "Hugo Authors"
title = "Guide to Thumbnails in Hugo"
date = "2019-03-04"
description = "Guide to Thumbnails in Hugo"
tags = [
"thumbnail",
]
thumbnail= "images/landscape.jpg"
+++