From b7a4db5ac4d91aa1929efc4c68960a7b9a0c3c03 Mon Sep 17 00:00:00 2001 From: Rise <8315221+AmazingRise@users.noreply.github.com> Date: Thu, 13 May 2021 16:43:10 +0800 Subject: Updated Inserting Figures (markdown) --- Inserting-Figures.md | 4 ++-- 1 file 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). -- cgit v1.2.3