Fix error with image shortcodes in readme
This commit is contained in:
@@ -110,14 +110,14 @@ Shortcodes extend markdown to make writing easier and more powerful.
|
||||
|
||||
```html
|
||||
<!--- Will display a WebP image on supported browsers if awesome.webp exists -->
|
||||
{{<image src="awesome.jpg" alt="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 will also display a WebP image on supported browsers if smile.webp exists -->
|
||||
{{<smallimg src="smile.png" alt="A big beautiful smile" smartfloat="left" width="100px" clear="true" >}}
|
||||
{{< smallimg src="smile.png" alt="A big beautiful smile" smartfloat="left" width="100px" clear="true" >}}
|
||||
```
|
||||
|
||||
### Further Customization
|
||||
|
||||
Reference in New Issue
Block a user