Add cover image to entry
This commit is contained in:
parent
55a8723567
commit
27a280647d
2 changed files with 21 additions and 20 deletions
|
|
@ -1,11 +1,18 @@
|
|||
{{ define "main" }}
|
||||
<h2>Actualités</h2>
|
||||
<div class="concerts">
|
||||
{{ range site.RegularPages }}
|
||||
{{ range where site.RegularPages "Section" "event" }}
|
||||
<div class="concert-entry">
|
||||
<p class="concert-date">{{ .Params.ConcertDate }}</p>
|
||||
<div class="concert-cover">
|
||||
<img src="/unk.jpg" alt="Unknown cover" />
|
||||
{{ with .Resources.GetMatch "cover.*" }}
|
||||
<img
|
||||
src="{{ .RelPermalink }}"
|
||||
width="{{ .Width }}"
|
||||
height="{{ .Height }}"
|
||||
alt="Concert cover"
|
||||
/>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="concert-overview">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
|
|
@ -27,7 +34,14 @@
|
|||
<img src="bar.png" class="separator" />
|
||||
<div class="concert-entry-container">
|
||||
<div class="concert-cover">
|
||||
<img src="/unk.jpg" alt="Unknown cover" />
|
||||
{{ with .Resources.GetMatch "cover.*" }}
|
||||
<img
|
||||
src="{{ .RelPermalink }}"
|
||||
width="{{ .Width }}"
|
||||
height="{{ .Height }}"
|
||||
alt="Concert cover"
|
||||
/>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="concert-overview">
|
||||
<a href="{{ .RelPermalink }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue