Add image-shortcode.md
parent
cefc10bbe1
commit
f8255f5720
@ -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" >}}
|
Loading…
Reference in New Issue