Don't double render faq and privacy policy
This commit is contained in:
parent
ffac22a143
commit
80928de21e
|
@ -85,8 +85,12 @@ module ApplicationHelper
|
|||
# will be rendered instead.
|
||||
def markdown_content(key, replacements=nil)
|
||||
result = PrettyText.cook(SiteContent.content_for(key, replacements || {})).html_safe
|
||||
result = yield if result.blank? && block_given?
|
||||
result
|
||||
if result.blank? && block_given?
|
||||
yield
|
||||
nil
|
||||
else
|
||||
result
|
||||
end
|
||||
end
|
||||
|
||||
def login_path
|
||||
|
|
Loading…
Reference in New Issue