38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
@extends('layouts.main')
|
|
|
|
@section('main')
|
|
<article id="article-main">
|
|
<header>
|
|
@if (empty($bundle->metadata()->get('hide_title')))
|
|
<h1>{{ $articleTitle }}</h1>
|
|
@endif
|
|
|
|
@if(!empty($mainLink))
|
|
<p><a
|
|
href="{!! $mainLink['finalUrl'] !!}"
|
|
rel="{!! $mainLink['rel'] !!}"
|
|
class="{!! $mainLink['classes'] !!}"
|
|
title="{!! $mainLink['title'] !!}">{!! $mainLink['url'] !!}</a></p>
|
|
@endif
|
|
|
|
@if (!empty($date))
|
|
<time datetime="{{ $date->toIso8601String() }}">{{ $date->isoFormat('LL') }}</time>
|
|
@endif
|
|
|
|
@if (!empty($cover))
|
|
{!! $cover !!}
|
|
@endif
|
|
</header>
|
|
|
|
@if (!empty($body))
|
|
<section id="article-body">
|
|
{!! $body !!}
|
|
</section>
|
|
@endif
|
|
</article>
|
|
|
|
@if (!empty($pagination['items']))
|
|
<x-pagination :data="$pagination" />
|
|
@endif
|
|
@endsection
|