blob: 4a9ddffc57e2c615270a6ba5b09905f286821286 [file] [log] [blame]
{{define "books"}}
{{- with (yaml .)}}
<ul class="Learn-tileList">
{{- range .}}
<li class="Learn-tile">
<a href="{{.url}}">
{{- if .thumbnail}}
<img
class="Learn-tileThumbnail Learn-tileThumbnail--book"
alt="{{.title}} thumbnail." src="{{.thumbnail}}">
{{- end}}
<span class="Learn-tileTitle">
{{.title}}
</span>
</a>
</li>
{{- end}}
</ul>
{{- end}}
{{- end}}