let <title> contain site name instead of just "Discourse"

This commit is contained in:
Kuba Brecka 2013-03-30 23:16:59 +01:00
parent 5bf3a0eaf3
commit db56d2bc97
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">