provide a better title on topic pages for crawlers

This commit is contained in:
Régis Hanol 2013-03-18 19:24:27 +01:00
parent b6224b014c
commit 125ac9a204
2 changed files with 3 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title><%=t :title%></title> <title><%= content_for?(:title) ? yield(:title) + ' - ' + t(:title) : t(:title) %></title>
<meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="description"> <meta content="" name="description">
<meta content="" name="author"> <meta content="" name="author">

View file

@ -28,3 +28,5 @@
description: @topic_view.summary, description: @topic_view.summary,
image: @topic_view.image_url) %> image: @topic_view.image_url) %>
<% end %> <% end %>
<% content_for(:title) { @topic_view.title } %>