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
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