hugo_frigg/layouts/archives/li.html

13 lines
501 B
HTML

<a class="archive hidden_link" href="{{ .Params.ExternalLink | default .RelPermalink }}">
{{ $thumb := $.Page.Resources.GetMatch "thumb.jpg"}}
{{ if $thumb }}
<img class="thumbnail" src="{{ .RelPermalink }}thumb.jpg" />
{{ else }}
<img class="thumbnail" src="/images/thumb.jpg" />
{{ end }}
<div class="description">
<span class="title">{{ .Title }}</span>
<span class="year">{{ .PublishDate.Format "2006" }}</span>
<span class="more">&rarr; plus d'infos</span>
</div>
</a>