Use the custom SEO title and descriptions in the frontend

This commit is contained in:
Nico Stapelbroek
2018-03-06 20:11:13 +01:00
parent b71c61ce7d
commit a42c2bb017

View File

@@ -1,8 +1,8 @@
@extends('layout.master')
@section('title', $incident->name.' | '.$site_title)
@section('title', array_get($incident->meta, 'seo.title', $incident->name).' | '.$site_title)
@section('description', trans('cachet.meta.description.incident', ['name' => $incident->name, 'date' => $incident->occurred_at_formatted]))
@section('description', array_get($incident->meta, 'seo.description', trans('cachet.meta.description.incident', ['name' => $incident->name, 'date' => $incident->occurred_at_formatted])))
@section('bodyClass', 'no-padding')