]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
Fixed some theming with commentary
authorAidan Cornelius-Bell <[email protected]>
Thu, 9 Jan 2025 04:14:06 +0000 (14:44 +1030)
committerAidan Cornelius-Bell <[email protected]>
Thu, 9 Jan 2025 04:14:06 +0000 (14:44 +1030)
app/models/post.rb
app/views/pubview/post.html.erb

index ce70ad27adacf17f12628aa03aa36abe6e45c93e..f4d0cc374619d7c007491024f8a8951587188f75 100644 (file)
@@ -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
index 07ac9b9d7af89a3edb6e490933adc11a90d1a862..34466b9fbfee66135739a086c6e9777b2d2c67cd 100644 (file)
@@ -54,7 +54,7 @@
 <% else %>
 <style>
 .side-note {
-    margin-top: -5.35em !important;
+    margin-top: -4em !important;
 }
 </style>
 <% end %>