add site_headers method

This commit is contained in:
jomo
2014-09-21 21:40:12 +02:00
parent ae05959340
commit 9187012e2e
2 changed files with 6 additions and 0 deletions

View File

@@ -5,6 +5,11 @@ module ApplicationHelper
site_title
end
def site_headers(site_headers)
content_for(:site_headers, site_headers.to_s.html_safe)
site_headers
end
def render_md(content)
renderer = Redcarpet::Render::HTML.new({
filter_html: true,

View File

@@ -9,6 +9,7 @@
<%= favicon_link_tag "favicon.ico" %>
<%= javascript_include_tag "application" %>
<link type="application/atom+xml" rel="alternate" href="<%= blogposts_path(:atom) %>">
<%= yield(:site_headers) %>
</head>
<body>
<%= render partial: "/layouts/head" %>