diff --git a/layouts/photos/page_summary.html b/layouts/photos/page_summary.html index 14a4905..31bb716 100644 --- a/layouts/photos/page_summary.html +++ b/layouts/photos/page_summary.html @@ -5,15 +5,15 @@ {{- $altText := $thumbnail.Params.alt -}} -{{- $linkTitle := .LinkTitle | markdownify -}} -{{- $showsTitle := le (len $linkTitle) 18 -}} +{{- $linkTitle := .LinkTitle -}} +{{- $showsTitle := le (len ($linkTitle | plainify)) 18 -}} {{- if not $showsTitle -}} {{ warnf "Title for photostream item is too long for grid: %s" .Permalink }} {{- end -}}
{{ if $showsTitle }} -

{{ $linkTitle }}

+

{{ $linkTitle | markdownify }}

{{ end }}