aboutsummaryrefslogtreecommitdiff
path: root/content/overview-images
diff options
context:
space:
mode:
authorJieiku2023-08-20 05:09:30 -0700
committerJieiku2023-08-20 05:09:30 -0700
commit4a9479325f07b1f73673cf95c1891229de9450dc (patch)
tree7b49e0ff046979b9ce75ff006a232adf10e3d806 /content/overview-images
parent211d08f9804c70943d7395175f25096483f006d0 (diff)
downloadabridge-4a9479325f07b1f73673cf95c1891229de9450dc.tar.gz
abridge-4a9479325f07b1f73673cf95c1891229de9450dc.tar.bz2
abridge-4a9479325f07b1f73673cf95c1891229de9450dc.zip
Fix image shortcodes, get_image_metadata()
Diffstat (limited to 'content/overview-images')
-rw-r--r--content/overview-images/index.md36
1 files changed, 18 insertions, 18 deletions
diff --git a/content/overview-images/index.md b/content/overview-images/index.md
index efa8843..b1f07e2 100644
--- a/content/overview-images/index.md
+++ b/content/overview-images/index.md
@@ -26,33 +26,33 @@ This post covers the **imgswap and img shortcodes**. Images can also be embedded
## Usage (same path)
```rs
-{{/* img(src="ferris-happy.svg" alt="Ferris is Happy" w=600 h=400) */}}
+{{/* img(src="ferris-happy.svg" alt="Ferris is Happy") */}}
```
**Output**
```html
-{{ img(src="ferris-happy.svg" alt="Ferris is Happy" w=600 h=400) }}
+{{ img(src="ferris-happy.svg" alt="Ferris is Happy") }}
```
-{{ img(src="ferris-happy.svg" alt="Ferris is Happy" w=600 h=400) }}
+{{ img(src="ferris-happy.svg" alt="Ferris is Happy") }}
## Usage (relative path ./)
```rs
-{{/* img(src="./img/ferris-gesture.svg" alt="Ferris says Hello" w=600 h=400) */}}
+{{/* img(src="./img/ferris-gesture.svg" alt="Ferris says Hello") */}}
```
**Output**
```html
-{{ img(src="./img/ferris-gesture.svg" alt="Ferris says Hello" w=600 h=400) }}
+{{ img(src="./img/ferris-gesture.svg" alt="Ferris says Hello") }}
```
-{{ img(src="./img/ferris-gesture.svg" alt="Ferris says Hello" w=600 h=400) }}
+{{ img(src="./img/ferris-gesture.svg" alt="Ferris says Hello") }}
## Usage (root path /)
```rs
-{{/* img(src="/overview-rich-content/ferris.svg" alt="Ferris the Rustacean" w=600 h=400) */}}
+{{/* img(src="/overview-rich-content/ferris.svg" alt="Ferris the Rustacean") */}}
```
**Output**
```html
-{{ img(src="/overview-rich-content/ferris.svg" alt="Ferris the Rustacean" w=600 h=400) }}
+{{ img(src="/overview-rich-content/ferris.svg" alt="Ferris the Rustacean") }}
```
-{{ img(src="/overview-rich-content/ferris.svg" alt="Ferris the Rustacean" w=600 h=400) }}
+{{ img(src="/overview-rich-content/ferris.svg" alt="Ferris the Rustacean") }}
# SVG image directly in code:
```html
@@ -74,30 +74,30 @@ When you hover your mouse over the image it will display the image to compare.
## Usage (same path)
```rs
-{{/* imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg" w=600 h=400) */}}
+{{/* imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg") */}}
```
**Output**
```html
-{{ imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg" w=600 h=400) }}
+{{ imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg") }}
```
-{{ imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg" w=600 h=400) }}
+{{ imgswap(main_src="ferris.svg" swap_src="ferris-happy.svg") }}
## Usage (relative path ./)
```rs
-{{/* imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg" w=600 h=400) */}}
+{{/* imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg") */}}
```
**Output**
```html
-{{ imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg" w=600 h=400) }}
+{{ imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg") }}
```
-{{ imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg" w=600 h=400) }}
+{{ imgswap(main_src="./img/ferris.svg" swap_src="./img/ferris-gesture.svg") }}
## Usage (root path /)
```rs
-{{/* imgswap(main_src="/overview-rich-content/ferris.svg" swap_src="/overview-rich-content/ferris-gesture.svg" w=600 h=400) */}}
+{{/* imgswap(main_src="/overview-rich-content/ferris.svg" swap_src="/overview-rich-content/ferris-gesture.svg") */}}
```
**Output**
```html
-{{ imgswap(main_src="/overview-rich-content/ferris.svg" swap_src="/overview-rich-content/ferris-gesture.svg" w=600 h=400) }}
+{{ imgswap(main_src="/overview-rich-content/ferris.svg" swap_src="/overview-rich-content/ferris-gesture.svg") }}
```
-{{ imgswap(main_src="/overview-rich-content/ferris.svg" swap_src="/overview-rich-content/ferris-gesture.svg" w=600 h=400) }}
+{{ imgswap(main_src="/overview-rich-content/ferris.svg" swap_src="/overview-rich-content/ferris-gesture.svg") }}