Better html title and feed titles.

This commit is contained in:
James Brooks 2014-12-30 22:25:38 +00:00
parent 2086b088b6
commit 0fabb5018f
2 changed files with 6 additions and 3 deletions

View File

@ -28,6 +28,9 @@ class HomeController extends Controller
*/
public function showIndex()
{
return View::make('index', ['components' => $this->component->all()]);
return View::make('index', [
'components' => $this->component->all(),
'pageTitle' => Setting::get('app_name')
]);
}
}

View File

@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- RSS Feed -->
<link rel="alternate" type="application/rss+xml" href="/rss" />
<link rel="alternate" type="application/rss+xml" href="/rss" title="{{ $pageTitle ?: Setting::get('app_name') }} Status - RSS Feed" />
<!-- Mobile friendliness -->
<meta name="HandheldFriendly" content="True">
@ -16,7 +16,7 @@
<!-- Mobile IE allows us to activate ClearType technology for smoothing fonts for easy reading -->
<meta http-equiv="cleartype" content="on">
<title>{{ isset($pageTitle) ? $pageTitle : Setting::get('app_name') }}</title>
<title>{{ $pageTitle ?: Setting::get('app_name') }} Status</title>
<link href='//fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="{{ elixir('css/all.css') }}">