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
884 B
31 lines
884 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 }}"> |
|
<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 }}"> |
|
{{ .Title | plainify | default " " }} </a> |
|
|
|
{{ end }} |
|
|
|
<figcaption > |
|
{{ if gt $count 0 }} |
|
<a href="tags/{{ .Params.CorrespondingTagName }}"> |
|
#{{ .Params.CorrespondingTagName | plainify }} <small>({{ $count }})</small> </a> |
|
{{ end }} |
|
</figcaption > |
|
|
|
</figure> |
|
|
|
{{ end }} |