Skip to content

Commit 854aec0

Browse files
committed
better mobile support
1 parent 848b2e7 commit 854aec0

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

main.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,9 @@ func processPost(post *api.Post, board string) *feeds.Item {
104104
item.Description = anchorize(strings.ReplaceAll(post.Comment, "<wbr>", ""))
105105
if post.File != nil {
106106
item.Description += fmt.Sprintf(
107-
"<img alt='%s' src='%s'/>",
108-
post.File.Name+post.File.Ext,
107+
"<a href='%s'>Image Link</a>",
109108
post.ImageURL(),
110109
)
111-
item.Description += fmt.Sprintf(
112-
"<img alt='%d.jpg' src='%s'/>",
113-
post.File.Id,
114-
post.ThumbURL(),
115-
)
116110
}
117111
item.Author = &feeds.Author{Name: post.Name}
118112
item.Created = post.Time

0 commit comments

Comments
 (0)