-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage.blade.php
40 lines (32 loc) · 1.43 KB
/
page.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<x-layouts.marketing>
<div class="lg:py-12">
<div class="px-5 md:px-12 lg:px-0">
<x-elements.back-button
class="max-w-4xl mx-auto mt-8"
text="Return Home"
:href="route('home')"
/>
</div>
<x-container>
<article id="post-{{ $page->id }}" class="max-w-4xl pb-20 mx-auto prose prose-md lg:prose-lg lg:px-0">
<meta property="name" content="{{ $page->title }}">
<meta property="author" typeof="Person" content="admin">
<meta property="dateModified" content="{{ Carbon\Carbon::parse($page->updated_at)->toIso8601String() }}">
<meta property="datePublished" content="{{ Carbon\Carbon::parse($page->created_at)->toIso8601String() }}">
<div class="max-w-4xl mx-auto mt-6">
<h1 class="flex flex-col leading-none">
<span>{{ $page->title }}</span>
</h1>
</div>
@if($page->image)
<div class="relative">
<img class="w-full h-auto" src="{{ $page->image() }}" alt="{{ $page->title }}" srcset="{{ $page->image() }}">
</div>
@endif
<div class="max-w-4xl mx-auto">
{!! $page->body !!}
</div>
</article>
</x-container>
</div>
</x-layouts.marketing>