Fix timemachine show
This commit is contained in:
@@ -204,6 +204,8 @@ module Main
|
|||||||
results << "</#{tag}>"
|
results << "</#{tag}>"
|
||||||
end
|
end
|
||||||
results
|
results
|
||||||
|
rescue REXML::ParseException => e
|
||||||
|
return "<p>No excerpt</p>"
|
||||||
end
|
end
|
||||||
|
|
||||||
def attrs_to_s(attrs)
|
def attrs_to_s(attrs)
|
||||||
|
@@ -28,6 +28,9 @@ div class="max-w-screen-md mx-auto px-4 m-4 h-max"
|
|||||||
a href="/post/#{post.slug}"
|
a href="/post/#{post.slug}"
|
||||||
img loading="lazy" class="mb-0 rounded" src="#{photo["value"]}"
|
img loading="lazy" class="mb-0 rounded" src="#{photo["value"]}"
|
||||||
= post.name
|
= post.name
|
||||||
|
- if post.location
|
||||||
|
div class="text-sm"
|
||||||
|
img loading="lazy" class="rounded mb-4" src=post.large_map
|
||||||
- else
|
- else
|
||||||
p No posts
|
p No posts
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user