You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
932 B

{{ 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 }}