Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/AmazingRise/hugo-theme-diary.wiki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRise <8315221+AmazingRise@users.noreply.github.com>2021-05-13 11:43:10 +0300
committerRise <8315221+AmazingRise@users.noreply.github.com>2021-05-13 11:43:10 +0300
commitb7a4db5ac4d91aa1929efc4c68960a7b9a0c3c03 (patch)
tree410f5bbe66b9969e60781b42321e68b0999099ae
parent6254ba3354a66314451b1841eba4e3ac47031a7e (diff)
Updated Inserting Figures (markdown)
-rw-r--r--Inserting-Figures.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/Inserting-Figures.md b/Inserting-Figures.md
index 70cc6c7..23f1a50 100644
--- a/Inserting-Figures.md
+++ b/Inserting-Figures.md
@@ -1,7 +1,7 @@
Inspired by [this issue](https://github.com/AmazingRise/hugo-theme-diary/issues/55), I ported a shortcode from [cupper-hugo-theme](https://github.com/zwbetz-gh/cupper-hugo-theme).
Thanks for [zwbetz-gh](https://github.com/zwbetz-gh)'s code.
-Additionally, I add a property `align`, for defining how figure aligns.
+Additionally, I add a property `align` for aligning.
```
{{< insertFigure
@@ -13,7 +13,7 @@ options="700x" >}}
```
NOTE:
-- `img`: it must be a resource name. [How to define a source?](https://gohugo.io/content-management/page-resources/#resources-metadata-example)
+- `img`: it can be a resource name; or a file's name, which located in current directory. [How to define a source?](https://gohugo.io/content-management/page-resources/#resources-metadata-example)
- `caption`: will be shown beneath the figure (markdown supported).
- `command`: it can be `Fit`, `Fill`, `Resize`, or `Original`.
- `align`: possible value: `Left`, `Right`, `Center`, `Justify` (it is not case-sensitive).