X-Git-Url: https://iankelling.org/git/?p=iankelling.org;a=blobdiff_plain;f=b.rb;h=4bd8f96d0c187dbe365073f90ccad5a9b544c5e4;hp=2dc8ad8ad7d9287dda1106a67b66544642663cd0;hb=e81919074554ec1e719f1431667299c9c84dc854;hpb=f32a9440b9055001ef3749999eaf3b4d7974932c diff --git a/b.rb b/b.rb index 2dc8ad8..4bd8f96 100644 --- a/b.rb +++ b/b.rb @@ -86,7 +86,7 @@ EOF

iankelling.org#{o[:header]}

-
+
#{content}
@@ -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} @@ -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}"