add site_headers method
This commit is contained in:
@@ -5,6 +5,11 @@ module ApplicationHelper
|
|||||||
site_title
|
site_title
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def site_headers(site_headers)
|
||||||
|
content_for(:site_headers, site_headers.to_s.html_safe)
|
||||||
|
site_headers
|
||||||
|
end
|
||||||
|
|
||||||
def render_md(content)
|
def render_md(content)
|
||||||
renderer = Redcarpet::Render::HTML.new({
|
renderer = Redcarpet::Render::HTML.new({
|
||||||
filter_html: true,
|
filter_html: true,
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<%= favicon_link_tag "favicon.ico" %>
|
<%= favicon_link_tag "favicon.ico" %>
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag "application" %>
|
||||||
<link type="application/atom+xml" rel="alternate" href="<%= blogposts_path(:atom) %>">
|
<link type="application/atom+xml" rel="alternate" href="<%= blogposts_path(:atom) %>">
|
||||||
|
<%= yield(:site_headers) %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%= render partial: "/layouts/head" %>
|
<%= render partial: "/layouts/head" %>
|
||||||
|
|||||||
Reference in New Issue
Block a user