57
resources/views/seo/season-page/prerender.blade.php
Executable file
57
resources/views/seo/season-page/prerender.blade.php
Executable file
@@ -0,0 +1,57 @@
|
||||
@extends('common::prerender.base')
|
||||
|
||||
@section('head')
|
||||
@include('seo.title-page.seo-tags')
|
||||
@endsection
|
||||
|
||||
@section('body')
|
||||
@include('seo.menu')
|
||||
|
||||
<h1>
|
||||
{{ $title->name }}: {{ __('Season') }}
|
||||
{{ $season->number }}
|
||||
</h1>
|
||||
|
||||
@if ($seasonCount = $title->seasons_count)
|
||||
<div>
|
||||
<h3>{{ __('Seasons') }}</h3>
|
||||
<ul>
|
||||
@foreach (range(0, $seasonCount) as $number)
|
||||
<li>
|
||||
<a
|
||||
href="{{ urls()->season(['title_id' => $title->id, 'number' => $number], $title) }}"
|
||||
>
|
||||
Season: {{ $number + 1 }}
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($episodes)
|
||||
<div>
|
||||
<ul>
|
||||
@foreach ($episodes as $episode)
|
||||
<li>
|
||||
<figure>
|
||||
<img
|
||||
src="{{ urls()->image($episode['poster']) }}"
|
||||
alt="Episode poster"
|
||||
width="270px"
|
||||
/>
|
||||
<figcaption>
|
||||
<a
|
||||
href="{{ urls()->episode($episode, $title) }}"
|
||||
>
|
||||
{{ $episode['name'] }}
|
||||
</a>
|
||||
</figcaption>
|
||||
</figure>
|
||||
<p>{{ $episode['description'] }}</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
25
resources/views/seo/season-page/seo-tags.blade.php
Executable file
25
resources/views/seo/season-page/seo-tags.blade.php
Executable file
@@ -0,0 +1,25 @@
|
||||
<meta property="og:site_name" content="{{ settings('branding.site_name') }}" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<title>
|
||||
{{ $title->name }} ({{ $title->year }}) - Season {{ $season->number }} -
|
||||
{{ settings('branding.site_name') }}
|
||||
</title>
|
||||
<meta property="og:url" content="{{ urls()->season($season, $title) }}" />
|
||||
<link rel="canonical" href="{{ urls()->season($season, $title) }}" />
|
||||
<meta
|
||||
property="og:title"
|
||||
content="{{ $title->name }} ({{ $title->year }}) - Season {{ $season->number }} - {{ settings('branding.site_name') }}"
|
||||
/>
|
||||
|
||||
@if ($season->poster)
|
||||
<meta property="og:image" content="{{ urls()->image($season->poster) }}" />
|
||||
<meta property="og:width" content="300" />
|
||||
<meta property="og:height" content="450" />
|
||||
@endif
|
||||
|
||||
<meta property="og:description" content="List of episodes for {{$title->name}}: Season {{$season->number}}" />
|
||||
<meta name="description" content="List of episodes for {{$title->name}}: Season {{$season->number}}" />
|
||||
<meta
|
||||
property="keywords"
|
||||
content="reviews,photos,user ratings,synopsis,trailers,credits"
|
||||
/>
|
||||
Reference in New Issue
Block a user