跳过正文
  1. Posts/

Image gallery

·75 字·1 分钟·
phywei
作者
phywei
物理 · 技术 · 生活
目录

Hugo theme Stack supports the creation of interactive image galleries using Markdown. It’s powered by PhotoSwipe and its syntax was inspired by Typlog.

To use this feature, the image must be in the same directory as the Markdown file, as it uses Hugo’s page bundle feature to read the dimensions of the image. External images are not supported.

Syntax
#

1
![Image 1](1.jpg) ![Image 2](2.jpg)

Result
#

Image 1
Image 2

Photo by mymind and Luke Chesser on Unsplash

相关文章

Shortcodes

·114 字·1 分钟
For more details, check out the documentation. Bilibili video # Tencent video # YouTube video # Generic video file # Your browser cannot play this video. Download video.

Math Typesetting

·115 字·1 分钟
Stack has built-in support for math typesetting using KaTeX. It’s not enabled by default side-wide, but you can enable it for individual posts by adding math: true to the front matter. Or you can enable it side-wide by adding math = true to the params.article section in config.toml.