40 lines
1.4 KiB
PHP
40 lines
1.4 KiB
PHP
@extends('theme::layouts.app')
|
|
|
|
@section('meta_title', $term->title . ' — ' . $channel->name)
|
|
@section('og_title', $term->title . ' — ' . $channel->name)
|
|
|
|
@section('content')
|
|
<div class="max-w-4xl mx-auto px-6 py-12">
|
|
<h1 class="text-3xl font-bold mb-8">{{ $term->title }}</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->meta_description)
|
|
<p class="mt-2 text-gray-600">{{ $publication->meta_description }}</p>
|
|
@endif
|
|
</article>
|
|
@empty
|
|
<p class="text-gray-500">No posts in this category yet.</p>
|
|
@endforelse
|
|
|
|
<div class="mt-8">
|
|
{{ $publications->links() }}
|
|
</div>
|
|
</div>
|
|
@endsection
|