found the culprit

This commit is contained in:
rra 2024-11-25 18:10:12 +01:00
parent 86c9df0c66
commit d0fd3f018e
3 changed files with 28 additions and 1 deletions

Binary file not shown.

View File

@ -0,0 +1,25 @@
---
title: "test-post"
date: "2024-11-24" #2021-06-10T10:46:33+02:00
draft: false
summary: ""
contributors: ["cem"]
original_link: "https://pen.lumbung.space/timeline/majelis-akbar-harvest-by-community-immunity-january-2022/"
feed_name: "pen.lumbung.space"
sources: ["timeline", "pen.lumbung.space"]
timelines: ['Community Immunity', 'drawing', 'Majelis Akbar']
hidden: true
---
<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-12 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1130" src="doc15Jan26-1.tiff"/></figure>
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1134" src="doc15Jan26-2.tiff"/></figure>
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1133" src="doc15Jan26-3.tiff"/></figure>
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1132" src="doc15Jan26-4.tiff"/></figure>
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1137" src="doc15Jan26-5.tiff"/></figure>
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1136" src="doc15Jan26-6.tiff"/></figure>
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1135" src="doc15Jan26-7.tiff"/></figure>
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1138" src="doc15Jan26-8.tiff"/></figure>
<figure class="wp-block-image size-large"><img alt="" class="wp-image-1131" src="doc15Jan26-9.tiff"/></figure>
</figure>
<p></p>

View File

@ -29,11 +29,13 @@
{{$matches := findRESubmatch `<img\s.*?src=(?:'|")([^'">]+)(?:'|")` .Content 1 }}
{{range $matches}}{{$first_image = index . 1}}{{end}}
{{with .Resources.Get $first_image}}
{{if .ResourceType}}
{{.ResourceType}}
{{.MediaType}}
<img src="{{ .Permalink }}" alt="">
{{/* uncomment below to crash the build*/}}
{{/* .Width */}}
{{.Width}}
{{end}}
{{end}}
<footer class='post-footer'>
<a href="{{ .RelPermalink }}">