2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->extend('podcast/_layout') ?>
|
|
|
|
|
|
|
|
<?= $this->section('meta-tags') ?>
|
|
|
|
<link type="application/rss+xml" rel="alternate" title="<?= $podcast->title ?>" href="<?= $podcast->feed_url ?>"/>
|
|
|
|
|
|
|
|
<title><?= $podcast->title ?></title>
|
|
|
|
<meta name="description" content="<?= htmlspecialchars(
|
|
|
|
$podcast->description,
|
|
|
|
) ?>" />
|
|
|
|
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
|
|
|
<link rel="canonical" href="<?= current_url() ?>" />
|
|
|
|
<meta property="og:title" content="<?= $podcast->title ?>" />
|
|
|
|
<meta property="og:description" content="<?= $podcast->description ?>" />
|
|
|
|
<meta property="og:locale" content="<?= $podcast->language_code ?>" />
|
|
|
|
<meta property="og:site_name" content="<?= $podcast->title ?>" />
|
|
|
|
<meta property="og:url" content="<?= current_url() ?>" />
|
|
|
|
<meta property="og:image" content="<?= $podcast->image->large_url ?>" />
|
2021-09-08 15:51:33 +00:00
|
|
|
<meta property="og:image:width" content="<?= config('Images')
|
|
|
|
->largeSize ?>" />
|
|
|
|
<meta property="og:image:height" content="<?= config('Images')
|
|
|
|
->largeSize ?>" />
|
2021-04-02 17:20:02 +00:00
|
|
|
<meta name="twitter:card" content="summary_large_image" />
|
2021-08-09 10:28:16 +00:00
|
|
|
|
2021-09-08 15:51:33 +00:00
|
|
|
<?= service('vite')
|
|
|
|
->asset('styles/index.css', 'css') ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
2021-08-09 10:28:16 +00:00
|
|
|
<nav class="sticky z-20 flex justify-center pt-2 text-lg sm:top-0 top-12 bg-pine-50">
|
2021-04-02 17:20:02 +00:00
|
|
|
<a href="<?= route_to(
|
2021-09-08 15:51:33 +00:00
|
|
|
'podcast-activity',
|
|
|
|
$podcast->handle,
|
|
|
|
) ?>" class="px-4 py-1 mr-8 font-semibold border-b-4 text-pine-800 border-pine-500"><?= lang(
|
|
|
|
'Podcast.activity',
|
|
|
|
) ?></a>
|
2021-04-02 17:20:02 +00:00
|
|
|
<a href="<?= route_to(
|
|
|
|
'podcast-episodes',
|
2021-07-26 13:10:46 +00:00
|
|
|
$podcast->handle,
|
2021-04-02 17:20:02 +00:00
|
|
|
) ?>" class="px-4 py-1 rounded-full hover:bg-pine-100"><?= lang(
|
2021-09-08 15:51:33 +00:00
|
|
|
'Podcast.episodes',
|
|
|
|
) ?></a>
|
2021-04-02 17:20:02 +00:00
|
|
|
</nav>
|
|
|
|
<section class="max-w-2xl px-6 py-8 mx-auto space-y-8">
|
2021-08-13 11:07:29 +00:00
|
|
|
<?php foreach ($posts as $post): ?>
|
|
|
|
<?php if ($post->reblog_of_id !== null): ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?= view('podcast/_partials/reblog', [
|
2021-08-13 11:07:29 +00:00
|
|
|
'post' => $post->reblog_of_post,
|
2021-04-02 17:20:02 +00:00
|
|
|
]) ?>
|
|
|
|
<?php else: ?>
|
2021-09-08 15:51:33 +00:00
|
|
|
<?= view('podcast/_partials/post', [
|
|
|
|
'post' => $post,
|
|
|
|
]) ?>
|
2021-04-02 17:20:02 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|