From b3588987080d7998ca18467b9d9fb10be06dfe15 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 15 May 2022 16:17:22 +0200 Subject: Add img shortcode --- exampleSite/content/documentation/index.md | 2 +- layouts/shortcodes/img.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 layouts/shortcodes/img.html diff --git a/exampleSite/content/documentation/index.md b/exampleSite/content/documentation/index.md index 5329d96..1caff57 100644 --- a/exampleSite/content/documentation/index.md +++ b/exampleSite/content/documentation/index.md @@ -67,7 +67,7 @@ $ hugo server Copy the url from your terminal log and paste it into your browser of choice. This url usually looks something like this `http://localhost:1313`. At this point you should be looking at your very own working version of Ed: -![Your very own Ed](screenshot-home.png) +{{< img src="screenshot-home.png" alt="Your very own Ed" >}} --- diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html new file mode 100644 index 0000000..3d2b03f --- /dev/null +++ b/layouts/shortcodes/img.html @@ -0,0 +1 @@ +{{.}} -- cgit v1.2.3