From c778c899624ea860b650e60e210e9120ee310ccf Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Mon, 22 Feb 2021 21:47:10 +0530 Subject: [PATCH] add figure align=center to FAQs --- content/posts/papermod/papermod-faq.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/posts/papermod/papermod-faq.md b/content/posts/papermod/papermod-faq.md index 217f037c..52091c94 100644 --- a/content/posts/papermod/papermod-faq.md +++ b/content/posts/papermod/papermod-faq.md @@ -239,6 +239,16 @@ Add `#center` after image to center align an image ![name](path/to/image.png#center) ``` +**When using [`figure`](https://gohugo.io/content-management/shortcodes/) shortcode** + +use `align=center` to center image with captions + +ex. + +```md +{{< figure align=center src="image.jpg" >}} +``` + --- ## Using Hugo's Syntax highlighter "chroma"