mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
provide a better title on topic pages for crawlers
This commit is contained in:
parent
b6224b014c
commit
125ac9a204
2 changed files with 3 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<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="" name="description">
|
||||
<meta content="" name="author">
|
||||
|
|
|
@ -28,3 +28,5 @@
|
|||
description: @topic_view.summary,
|
||||
image: @topic_view.image_url) %>
|
||||
<% end %>
|
||||
|
||||
<% content_for(:title) { @topic_view.title } %>
|
Loading…
Reference in a new issue