Merge pull request #2906 from nstapelbroek/feature/2895-duplicate-title-and-meta-tags

#2895 duplicate title and meta tags
This commit is contained in:
James Brooks 2018-02-17 13:12:35 +00:00 committed by GitHub
commit 2d8bf2fa79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 3 deletions

View File

@ -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 <a href="https://cachethq.io" class="links">Cachet</a>.',
'timezone' => 'Times are shown in :timezone.',
'about_this_site' => 'About This Site',

View File

@ -15,12 +15,12 @@
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="description" content="{{ trans('cachet.description', ['app' => $app_name]) }}">
<meta name="description" content="@yield('description', trans('cachet.meta.description.overview', ['app' => $app_name]))">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ $site_title }}">
<meta property="og:image" content="/img/favicon.png">
<meta property="og:description" content="{{ trans('cachet.description', ['app' => $app_name]) }}">
<meta property="og:description" content="@yield('description', trans('cachet.meta.description.overview', ['app' => $app_name]))">
<!-- Mobile IE allows us to activate ClearType technology for smoothing fonts for easy reading -->
<meta http-equiv="cleartype" content="on">

View File

@ -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')

View File

@ -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')

View File

@ -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')
<div class="pull-right">
<p><a class="btn btn-success btn-outline" href="{{ cachet_route('status-page') }}"><i class="ion ion-home"></i></a></p>