X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=b.rb;h=391a0ed5e97430f34223d5432d177d951bfae929;hp=b5e2aa91bb94782a20a18316717492f4d92cc626;hb=d0aafa5d6370307bdf0abe470be16f6a15f15162;hpb=842a5c8cf5cb6526dc880fd8bc5fedd2ecfc544c diff --git a/b.rb b/b.rb index b5e2aa9..391a0ed 100644 --- a/b.rb +++ b/b.rb @@ -75,15 +75,14 @@ EOF #{title} - - + #{o[:head]} -
+
@@ -91,12 +90,12 @@ EOF #{content}
-
+
#{o[:comments]}
@@ -126,15 +125,14 @@ EOF end def comment_html(comment, date) - inner = Redcarpet::Markdown.new(Redcarpet::Render::Safe, fenced_code_blocks: true).render(<#{Time.at(date).strftime("%b %-d '%y")} -EOF # I tried putting the time, %I:%M %p UTC, but it looks kinda # clunky, going against my simple theme. + user_input = Redcarpet::Markdown.new(Redcarpet::Render::Safe, + fenced_code_blocks: true).render(comment) < - #{inner} + #{user_input} +

#{Time.at(date).strftime("%b %-d '%y")}

EOF end @@ -222,8 +220,8 @@ EOF comment_html("Note: there #{text} pending approval.", NOW) end com_section = <<-EOF -
- + + @@ -244,7 +242,7 @@ EOF blog_toc_entry = "
  • #{title}
  • " com_section = < +
    #{com_section}
    EOF