Commit b36777c9 authored by Betz's avatar Betz

image shortcode link attribute

parent 8e4e7b3c
Pipeline #50348170 passed with stages
in 1 minute and 47 seconds
......@@ -297,7 +297,7 @@ are using when sampling.
## Transmitting
{{< image src="images/rochellsalt.jpg" width="200x" >}}
{{< image src="images/rochellsalt.jpg" width="200x" link="images/rochellsalt.jpg" >}}
- Stream on p-node.org
- transmit on local 108FM
......@@ -3,9 +3,17 @@
{{ $width := .Get "width"}}
{{ $link := .Get "link"}}
{{ if $link }}
<a href="{{ $link }}">
{{ end }}
{{ if $width }}
{{ $image := ($original.Resize $width ) }}
<img src="{{ $image.RelPermalink }}">
{{ else }}
<img src="{{ $src }}">
{{ end }}
{{ if $link }}
</a>
{{ end }}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment