Make use of image resources in project list

epvpn
Robert Jacob 2 years ago
parent 869efefced
commit 1c6c7c9209
  1. 2
      layouts/projekt/li.html

@ -1,5 +1,5 @@
<div class="hn-block-item">
<div class="hn-project-list-item"{{ if .Params.image }} style="background-image: url({{ .Params.image | absURL }})"{{ end }}>
<div class="hn-project-list-item"{{ if .Params.image }} style="background-image: url({{ with .Resources.GetMatch .Params.image }}{{ (.Fill "300x200").Permalink }}{{ else }}{{ .Params.image | absURL }}{{ end }})"{{ end }}>
<a class="hn-project-list-item-link" href="{{ .Permalink }}">
<div class="hn-project-list-item-content">
<div class="hn-project-list-item-text">{{ .Title }}</div>

Loading…
Cancel
Save