mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 21:22:46 +08:00
Merge pull request #491 from ZogStriP/better-topic-title-for-crawlers
provide a better title on topic pages for crawlers
This commit is contained in:
commit
c8b891db4a
|
@ -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 New Issue
Block a user