Add image-shortcode.md
This commit is contained in:
29
exampleSite/content/blog/image-shortcode.md
Normal file
29
exampleSite/content/blog/image-shortcode.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
categories: [paige]
|
||||
date: "2023-01-06"
|
||||
description: Demonstration of the image shortcode.
|
||||
tags: [figures, shortcodes]
|
||||
title: Image Shortcode
|
||||
---
|
||||
|
||||
Code:
|
||||
|
||||
```go-text-template
|
||||
{{</* paige/image src="stretch.webp" */>}}
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
{{< paige/image src="stretch.webp" >}}
|
||||
|
||||
---
|
||||
|
||||
Code:
|
||||
|
||||
```go-text-template
|
||||
{{</* paige/image src="stretch.webp" caption="Landscape" width="50%" link="https://github.com/willfaught/paige" */>}}
|
||||
```
|
||||
|
||||
Result:
|
||||
|
||||
{{< paige/image src="stretch.webp" caption="Landscape" width="50%" link="https://github.com/willfaught/paige" >}}
|
Reference in New Issue
Block a user