diff --git a/README.md b/README.md index 0071ac1..eb040d0 100644 --- a/README.md +++ b/README.md @@ -110,14 +110,14 @@ Shortcodes extend markdown to make writing easier and more powerful. ```html -{{An awesome image that will use webp when possible. Much faster!}} +{{< image src="awesome.jpg" alt="An awesome image that will use webp when possible. Much faster!" >}} ``` `smallimg` allows you to add smaller images to your posts that aren't stretched to be as wide as the content area. Smallimg takes the parameters src, alt, smartfloat (optional), width (optional, in pixels only), and clear (optional). The smartfloat parameter can be set to right or left, and it floats the image to the right or left on big enough screens. The clear parameter allows you to clear a previous float which is helpful if you are using multiple smallimgs close to each other. ```html -{{}} +{{< smallimg src="smile.png" alt="A big beautiful smile" smartfloat="left" width="100px" clear="true" >}} ``` ### Further Customization