diff --git a/themes/lumbung-theme/layouts/partials/network_card.html b/themes/lumbung-theme/layouts/partials/network_card.html index 27de0d7..dae6e92 100644 --- a/themes/lumbung-theme/layouts/partials/network_card.html +++ b/themes/lumbung-theme/layouts/partials/network_card.html @@ -4,18 +4,30 @@ {{ $postPermalink := .Permalink}}

{{ .Title }}

- -
From {{ if .Params.authors }}{{range .Params.authors}} {{.}} {{end}} at {{ end }}{{ .Params.feed_name }}
- {{ with (index (.Resources.ByType "image") 0) }} - {{ $height := add .Height 0.0}} - {{ $ratio := div $height .Width}} - {{ $thumb := .Fit "540x540 q80 webp"}} +
From {{ if .Params.authors }}{{range .Params.authors}} {{ . }} {{end}} at {{ end }}{{ .Params.feed_name }}
+ + {{ if .Params.featured_image }} + {{ $img := .Resources.GetMatch .Params.featured_image }} + {{ $height := add $img.Height 0.0}} + {{ $ratio := div $height $img.Width}} + {{ $thumb := $img.Fit "540x540 q80 webp"}} +
+
+ {{ .Title }} +
+ {{ else if (.Resources.ByType "image") }} + {{ with (index (.Resources.ByType "image") 0) }} + {{ $img := . }} + {{ $height := add .Height 0.0}} + {{ $ratio := div $height .Width}} + {{ $thumb := .Fit "540x540 q80 webp"}}
+ {{ end }} {{ else }}
{{ end }} diff --git a/themes/lumbung-theme/layouts/partials/shout_card.html b/themes/lumbung-theme/layouts/partials/shout_card.html index af13173..653412b 100644 --- a/themes/lumbung-theme/layouts/partials/shout_card.html +++ b/themes/lumbung-theme/layouts/partials/shout_card.html @@ -29,7 +29,7 @@