22
resources/views/seo/news-article-page/prerender.blade.php
Executable file
22
resources/views/seo/news-article-page/prerender.blade.php
Executable file
@@ -0,0 +1,22 @@
|
||||
@extends('common::prerender.base')
|
||||
|
||||
@section('head')
|
||||
@include('seo.news-article-page.seo-tags')
|
||||
@endsection
|
||||
|
||||
@section('body')
|
||||
@include('seo.menu')
|
||||
|
||||
<h1>{{$article->title}}</h1>
|
||||
|
||||
<h2>{{$article->byline}}</h2>
|
||||
<h3>{{$article->source}}</h3>
|
||||
|
||||
@if($article->image)
|
||||
<img src="{{urls()->image($article->image)}}" alt="Article image">
|
||||
@endif
|
||||
|
||||
<article>
|
||||
{!!$article->body!!}
|
||||
</article>
|
||||
@endsection
|
||||
22
resources/views/seo/news-article-page/seo-tags.blade.php
Executable file
22
resources/views/seo/news-article-page/seo-tags.blade.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<meta property="og:site_name" content="{{ settings('branding.site_name') }}" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="og:type" content="website" />
|
||||
<title>{{ $article->title }} - {{ settings('branding.site_name') }}</title>
|
||||
<meta property="og:url" content="{{ urls()->article($article) }}" />
|
||||
<link rel="canonical" href="{{ urls()->article($article) }}" />
|
||||
<meta
|
||||
property="og:title"
|
||||
content="{{ $article->title }} - {{ settings('branding.site_name') }}"
|
||||
/>
|
||||
|
||||
@if ($article->image)
|
||||
<meta property="og:image" content="{{ urls()->image($article->image) }}" />
|
||||
<meta property="og:width" content="300" />
|
||||
<meta property="og:height" content="450" />
|
||||
@endif
|
||||
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{{ str($article->body)->limit(300) }}"
|
||||
/>
|
||||
<meta name="description" content="{{ str($article->body)->limit(300) }}" />
|
||||
Reference in New Issue
Block a user