Math Typesetting
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
.
Inline math
This is an inline mathematical expression: $\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…$
|
|
Block math
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$
|
|
|
|
Inline Shortcodes
For more details, check out the documentation.
Bilibili video
Tencent video
YouTube video
Generic video file
Gist
GitLab
Quote
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
― A famous person, The book they wrote
Image gallery
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
|
|
Result
Photo by mymind and Luke Chesser on Unsplash