jlelse
/
Indieroad
Archived
1
Fork 0
This commit is contained in:
Jan-Lukas Else 2019-12-01 20:25:57 +01:00
parent 04d5f3b2db
commit 145c4347e3
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<div class="box">
<figure itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<div class="img"{{ if .Parent }} style="background-image: url('{{ $thumb.RelPermalink }}');"{{ end }}>
<img itemprop="thumbnail" src="{{ $thumb.RelPermalink }}" {{ with .Get "caption" }}alt="{{.}}"{{ end }}/>
<img itemprop="thumbnail" src="{{ $thumb.RelPermalink }}" {{ with .Get "caption" }}alt="{{ . | markdownify }}"{{ end }}/>
</div>
<a href="{{ $src.RelPermalink }}" itemprop="contentUrl" data-size="{{ $src.Width }}x{{ $src.Height }}"></a>
{{ with .Get "caption" }}