add site_headers method
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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" %>
|
||||
|
||||
Reference in New Issue
Block a user