summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--exampleSite/content/documentation/index.md2
-rw-r--r--layouts/shortcodes/img.html1
2 files changed, 2 insertions, 1 deletions
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 @@
+<img src="{{ .Get "src" }}" {{- with .Get "alt" }} alt="{{.}}"{{ end }} {{- with .Get "width" }} width="{{.}}"{{ end }} {{- with .Get "height" }} height="{{.}}"{{ end }} {{- with .Get "class" }} class="{{.}}"{{ end }}>