From b73f4e986404e2cf26dd83505491ca8a935e4ceb Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 9 Sep 2013 11:38:09 -0400 Subject: [PATCH] Put category description in meta description tag --- app/controllers/list_controller.rb | 1 + app/views/layouts/application.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index a46976c502c..4d36b17fc9c 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -74,6 +74,7 @@ class ListController < ApplicationController end guardian.ensure_can_see!(@category) list = query.list_category(@category) + @description = @category.description end list.more_topics_url = url_for(category_list_path(params[:category], page: next_page, format: "json")) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 18a8079d908..ad918507e9d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -4,7 +4,7 @@ <%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %> - + <%= canonical_link_tag %>