aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/blog_controller.rb1
-rw-r--r--app/views/blog/posts/show.html.erb5
2 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/blog_controller.rb b/app/controllers/blog_controller.rb
index 0931cbd..2efeaa4 100644
--- a/app/controllers/blog_controller.rb
+++ b/app/controllers/blog_controller.rb
@@ -1,5 +1,6 @@
class BlogController < ApplicationController
+ helper :blog_posts
before_filter :find_page, :find_all_blog_categories
protected
diff --git a/app/views/blog/posts/show.html.erb b/app/views/blog/posts/show.html.erb
index 603a44f..e6710a2 100644
--- a/app/views/blog/posts/show.html.erb
+++ b/app/views/blog/posts/show.html.erb
@@ -71,8 +71,9 @@
<%= stylesheet_link_tag 'refinerycms-blog' %>
<%= javascript_include_tag('refinerycms-blog') %>
<% if BlogPost::ShareThis.enabled? %>
- <script src="http://w.sharethis.com/button/buttons.js"></script>
- <script>stLight.options({publisher:'<%= BlogPost::ShareThis.key %>'});</script>
+ <script src="http://w.sharethis.com/button/buttons.js"></script>
+ <script>stLight.options({publisher:'<%= BlogPost::ShareThis.key %>'});</script>
+ <% end %>
<% end %>
<% else %>
<% content_for :stylesheets, stylesheet_link_tag('refinerycms-blog') %>