Small design changes

This commit is contained in:
2023-07-02 09:50:06 +10:00
parent 93041ee207
commit e2ee90ce38
5 changed files with 21 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ module Adamantium
include Deps["clients.omdb"]
def poster
omdb_record.poster
omdb_record&.poster
end
def omdb_record

View File

@@ -70,7 +70,7 @@ module Adamantium
end
def excerpt
name ? truncate_html(content, 140, true) : content
name ? truncate_html(content, 240, true) : content
end
def permalink
@@ -100,6 +100,8 @@ module Adamantium
def posted_in
if name.nil?
:statuses
elsif post_type.to_sym == :book
:bookshelf
elsif location.nil?
:posts
else