13
resources/views/seo/custom-page/prerender.blade.php
Executable file
13
resources/views/seo/custom-page/prerender.blade.php
Executable file
@@ -0,0 +1,13 @@
|
||||
@extends('common::prerender.base')
|
||||
|
||||
@section('head')
|
||||
@include('seo.custom-page.seo-tags')
|
||||
@endsection
|
||||
|
||||
@section('body')
|
||||
<h1>{{ $page->title }}</h1>
|
||||
|
||||
<main>
|
||||
{!! $page->body !!}
|
||||
</main>
|
||||
@endsection
|
||||
15
resources/views/seo/custom-page/seo-tags.blade.php
Executable file
15
resources/views/seo/custom-page/seo-tags.blade.php
Executable file
@@ -0,0 +1,15 @@
|
||||
<meta property="og:site_name" content="{{ settings('branding.site_name') }}" />
|
||||
<meta property="twitter:card" content="summary" />
|
||||
<meta property="og:type" content="website" />
|
||||
<title>{{ $page->title }} - {{ settings('branding.site_name') }}</title>
|
||||
<meta
|
||||
property="og:title"
|
||||
content="{{ $page->title }} - {{ settings('branding.site_name') }}"
|
||||
/>
|
||||
<meta property="og:url" content="{{ urls()->customPage($page) }}" />
|
||||
<link rel="canonical" href="{{ urls()->customPage($page) }}" />
|
||||
|
||||
@if ($page->description)
|
||||
<meta property="og:description" content="{{ $page->description }}" />
|
||||
<meta name="description" content="{{ $page->description }}" />
|
||||
@endif
|
||||
Reference in New Issue
Block a user