Squashed 'themes/paperesque/' content from commit 228903d

git-subtree-dir: themes/paperesque
git-subtree-split: 228903d2bad09f92d4de8a2922806fafd24d3966
This commit is contained in:
2020-10-09 23:41:57 +05:30
commit e186c5d6f7
108 changed files with 4071 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{{/* The featured image, using the same rules as what the twitter cards use. */}}
{{- with $.Params.images -}}
{{- index . 0 | absURL -}}
{{- else -}}
{{- $images := $.Resources.ByType "image" -}}
{{- $featured := $images.GetMatch "*feature*" -}}
{{- $featured := cond (ne $featured nil) $featured ($images.GetMatch "{*cover*,*thumbnail*}") -}}
{{- with $featured -}}
{{- $featured.Permalink -}}
{{- else -}}
{{- with $.Site.Params.images -}}
{{- index . 0 | absURL -}}
{{- end -}}
{{- end -}}
{{- end -}}