add left-right padding for small res
[iankelling.org] / b.rb
diff --git a/b.rb b/b.rb
index d4e97b6dba16b1c988ed0760561022e9aad3e14a..6bd631d9c9d81489e3263da61b0a6349c61b6699 100644 (file)
--- a/b.rb
+++ b/b.rb
@@ -58,7 +58,7 @@ module B # blog module
     head = <<EOF
 <link rel="canonical" href="#{DURL}/#{rel_path}">
 EOF
-    if rel_path =~ %r{^blog/.}
+    if rel_path =~ %r{^/blog/|^blog.html}
       head += <<EOF
 <link rel="alternate" type="application/atom+xml" title="#{DN}" href="#{DURL}/feed.xml">
 EOF
@@ -75,15 +75,14 @@ EOF
   <head>
     <meta charset="utf-8">
     <title>#{title}</title>
-    <link rel="stylesheet" href="/main.css">
-    <link rel="stylesheet" href="/common.css">
+    <link rel="stylesheet" href="/css/main.css">
     <link rel="shortcut icon" href="/assets/favicon.png" />
     <meta name="description" content="#{o[:description] || DESCRIPTION}">
 #{o[:head]}
     <meta name="viewport" content="width=device-width, initial-scale=1">
   </head>
   <body>
-    <header>
+    <header class="page_header">
       <h3><a href="/">iankelling.org</a>#{o[:header]}</h3>
     </header>
     <div class="main-content-stripe">
@@ -126,7 +125,7 @@ EOF
   end
 
   def comment_html(comment, date)
-    inner = Redcarpet::Markdown.new(Redcarpet::Render::HTML, fenced_code_blocks: true).render(<<EOF)
+    inner = Redcarpet::Markdown.new(Redcarpet::Render::Safe, fenced_code_blocks: true).render(<<EOF)
 #{comment}
 <span class="comment-date">#{Time.at(date).strftime("%b %-d '%y")}</span>
 EOF