31 lines
932 B
HTML
31 lines
932 B
HTML
{{ range where .Site.RegularPages "Type" "tiles" }}
|
|
|
|
{{ $count := partial "func/count_posts.html" ( dict "context" . "term" .Params.CorrespondingTagName ) }}
|
|
|
|
<figure >
|
|
|
|
{{if .Params.Cover }}
|
|
<!-- Cover image found -- found in tiles -->
|
|
<a href="https://{{ .Params.urlLink }}" target="_blank">
|
|
<img src="{{ .Params.Cover }}"
|
|
alt="{{ .Title | plainify | default " " }}"
|
|
title="{{ .Params.CoverCredit |plainify|default "Cover Image" }}" /></a>
|
|
|
|
{{ else }}
|
|
|
|
<!-- No cover image found -->
|
|
<a href="https://{{ .Params.urlLink }}" target="_blank">
|
|
{{ .Title | plainify | default " " }} </a>
|
|
|
|
{{ end }}
|
|
|
|
<figcaption >
|
|
{{ if gt $count 0 }}
|
|
<a href="tags/{{ .Params.CorrespondingTagName }}" target="_blank">
|
|
#{{ .Params.CorrespondingTagName | plainify }} <small>({{ $count }})</small> </a>
|
|
{{ end }}
|
|
</figcaption >
|
|
|
|
</figure>
|
|
|
|
{{ end }} |