Skip to content

Commit

Permalink
Update render-image hook
Browse files Browse the repository at this point in the history
  • Loading branch information
cntrump committed May 1, 2020
1 parent d4c0e18 commit 04960a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions layouts/_default/_markup/render-image.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
{{- if $block -}}
<span class="image-container"><span class="link">
{{- end -}}
<a target="_blank" rel="noopener noreferrer"
href="{{- $url -}}"><img {{ if $block }}class="img"{{ end }} src="{{- $url -}}"
alt{{- with .Text -}}="{{- . -}}" {{- end -}} /></a>
<img {{ if $block }}class="img"{{ end }} src="{{- $url -}}"
alt{{- with .Text -}}="{{- . -}}" {{- end -}} />
{{- if $block -}}
</span>
{{- if ne .Title " " -}}
Expand Down

0 comments on commit 04960a4

Please sign in to comment.