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

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 }}">