48 lines
1.8 KiB
PHP
48 lines
1.8 KiB
PHP
@extends('theme::layouts.app')
|
|
|
|
@section('content')
|
|
<div class="max-w-4xl mx-auto px-6 py-12">
|
|
<h1 class="text-3xl font-bold capitalize mb-8">{{ $prefix }}</h1>
|
|
|
|
@forelse($publications as $publication)
|
|
<article class="mb-8 pb-8 border-b border-gray-200 last:border-0">
|
|
<h2 class="text-xl font-semibold">
|
|
<a href="{{ $publication->url }}" class="hover:underline">
|
|
{{ $publication->title }}
|
|
</a>
|
|
</h2>
|
|
|
|
<div class="mt-1 text-sm text-gray-500 flex items-center gap-3">
|
|
@if($publication->post->author)
|
|
<span>{{ $publication->post->author->name }}</span>
|
|
<span>·</span>
|
|
@endif
|
|
<time datetime="{{ $publication->published_at->toDateString() }}">
|
|
{{ $publication->published_at->format('d M Y') }}
|
|
</time>
|
|
</div>
|
|
|
|
@if($publication->taxonomyTerms->isNotEmpty())
|
|
<div class="mt-2 flex flex-wrap gap-2">
|
|
@foreach($publication->taxonomyTerms as $term)
|
|
<a href="/{{ $channel->taxonomy_slug }}/{{ $term->slug }}"
|
|
class="text-xs bg-gray-100 hover:bg-gray-200 px-2 py-1 rounded">
|
|
{{ $term->title }}
|
|
</a>
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
|
|
@if($publication->meta_description)
|
|
<p class="mt-2 text-gray-600">{{ $publication->meta_description }}</p>
|
|
@endif
|
|
</article>
|
|
@empty
|
|
<p class="text-gray-500">No posts yet.</p>
|
|
@endforelse
|
|
|
|
<div class="mt-8">
|
|
{{ $publications->links() }}
|
|
</div>
|
|
</div>
|
|
@endsection
|