Fix timemachine show

This commit is contained in:
2024-09-07 13:32:19 +10:00
parent e06c69ab81
commit 2a2d3ae9d1
2 changed files with 5 additions and 0 deletions

View File

@@ -204,6 +204,8 @@ module Main
results << "</#{tag}>"
end
results
rescue REXML::ParseException => e
return "<p>No excerpt</p>"
end
def attrs_to_s(attrs)

View File

@@ -28,6 +28,9 @@ div class="max-w-screen-md mx-auto px-4 m-4 h-max"
a href="/post/#{post.slug}"
img loading="lazy" class="mb-0 rounded" src="#{photo["value"]}"
= post.name
- if post.location
div class="text-sm"
img loading="lazy" class="rounded mb-4" src=post.large_map
- else
p No posts