X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=b.rb;h=4bd8f96d0c187dbe365073f90ccad5a9b544c5e4;hp=4611b5d7fe9cc237c98341c2b8765acae5fdeddb;hb=e81919074554ec1e719f1431667299c9c84dc854;hpb=512e27c6bf1c40085f9fcc4c9769ef5b8ba6f4f9 diff --git a/b.rb b/b.rb index 4611b5d..4bd8f96 100644 --- a/b.rb +++ b/b.rb @@ -82,20 +82,20 @@ EOF -
+
-
+
#{content}
-
+
#{o[:comments]}
@@ -125,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 @@ -221,11 +220,11 @@ EOF comment_html("Note: there #{text} pending approval.", NOW) end com_section = <<-EOF -
- + + - - + +
#{com_list} @@ -243,7 +242,7 @@ EOF blog_toc_entry = "
  • #{title}
  • " com_section = < +
    #{com_section}
    EOF @@ -268,6 +267,11 @@ EOF fskel(rel_path, title, page_html, header: header_rel, footer: footer_extra, + # We call the main content prose because it can contain + # code, so we want to left justify it, so we dont have + # to cram all the code into the middle and can use + # a wider area. + prose: true, comments: com_section, description: description) url="#{DURL}#{rel_path}"