diff options
-rw-r--r-- | Inserting-Figures.md | 4 |
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). |