Merge pull request #598 from kubabrecka/html_title

let <title> contain site name instead of just "Discourse"
This commit is contained in:
Robin Ward 2013-03-31 07:49:20 -07:00
commit b99befc5c2
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title><%= content_for?(:title) ? yield(:title) + ' - ' + t(:title) : t(:title) %></title> <title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.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

@ -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><%=SiteSetting.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">