diff --git a/resources/lang/en/cachet.php b/resources/lang/en/cachet.php index 0c45fe00..7b8099b5 100644 --- a/resources/lang/en/cachet.php +++ b/resources/lang/en/cachet.php @@ -117,9 +117,18 @@ return [ ], ], + // Meta descriptions + 'meta' => [ + 'description' => [ + 'incident' => 'Details and updates about the :name incident that occurred on :date', + 'schedule' => 'Details about the scheduled maintenance period :name starting :startDate', + 'subscribe' => 'Subscribe to :app in order to receive updates of incidents and scheduled maintenance periods', + 'overview' => 'Stay up to date with the latest service updates from :app.', + ], + ], + // Other 'home' => 'Home', - 'description' => 'Stay up to date with the latest service updates from :app.', 'powered_by' => 'Powered by Cachet.', 'timezone' => 'Times are shown in :timezone.', 'about_this_site' => 'About This Site', diff --git a/resources/views/layout/master.blade.php b/resources/views/layout/master.blade.php index 5700e3aa..413bfd34 100644 --- a/resources/views/layout/master.blade.php +++ b/resources/views/layout/master.blade.php @@ -15,12 +15,12 @@ - + - + diff --git a/resources/views/single-incident.blade.php b/resources/views/single-incident.blade.php index 519d5d83..59d88dc1 100644 --- a/resources/views/single-incident.blade.php +++ b/resources/views/single-incident.blade.php @@ -2,6 +2,8 @@ @section('title', $incident->name.' | '.$site_title) +@section('description', trans('cachet.meta.description.incident', ['name' => $incident->name, 'date' => $incident->occurred_at_formatted])) + @section('bodyClass', 'no-padding') @section('outer-content') diff --git a/resources/views/single-schedule.blade.php b/resources/views/single-schedule.blade.php index cc3f7cbe..1f20dfb2 100644 --- a/resources/views/single-schedule.blade.php +++ b/resources/views/single-schedule.blade.php @@ -2,6 +2,8 @@ @section('title', $schedule->name.' | '.$site_title) +@section('description', trans('cachet.meta.description.schedule', ['name' => $schedule->name, 'startDate' => $schedule->scheduled_at_formatted])) + @section('bodyClass', 'no-padding') @section('outer-content') diff --git a/resources/views/subscribe/subscribe.blade.php b/resources/views/subscribe/subscribe.blade.php index 0b9749c8..fc7a1e8f 100644 --- a/resources/views/subscribe/subscribe.blade.php +++ b/resources/views/subscribe/subscribe.blade.php @@ -1,5 +1,9 @@ @extends('layout.master') +@section('title', trans('cachet.subscriber.subscribe'). " | ". $site_title)) + +@section('description', trans('cachet.meta.description.subscribe', ['app' => $site_title])) + @section('content')