From: Aidan Cornelius-Bell Date: Thu, 9 Jan 2025 04:14:06 +0000 (+1030) Subject: Fixed some theming with commentary X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=f9f5275d7c61c8304fc9edc80ce3cbb887855552;p=arelpe.git Fixed some theming with commentary --- diff --git a/app/models/post.rb b/app/models/post.rb index ce70ad2..f4d0cc3 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -50,9 +50,9 @@ class Post < ApplicationRecord def rendered_content if self.bookmark? - content = "#{self.content}[1]\n\n\n[1] #{self.url}" + content = "#{self.content.rstrip} Linked content [1].\n\n\n\n\n\n\n[1] #{self.url}" #raise content - MarkdownRenderer.render(self.content) + MarkdownRenderer.render(content) else MarkdownRenderer.render(self.content) end diff --git a/app/views/pubview/post.html.erb b/app/views/pubview/post.html.erb index 07ac9b9..34466b9 100644 --- a/app/views/pubview/post.html.erb +++ b/app/views/pubview/post.html.erb @@ -54,7 +54,7 @@ <% else %> <% end %>