Commit 3f2e0560 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: replace hardcoded style links with vite service + set default value for remote transcript url

fixes #149, #150
parent 84a0029c
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -259,7 +259,9 @@ if (! function_exists('get_rss_feed')) {
                $transcriptElement->addAttribute('url', $episode->transcript_file_url);
                $transcriptElement->addAttribute(
                    'type',
                    Mimes::guessTypeFromExtension(pathinfo($episode->transcript_file_url, PATHINFO_EXTENSION)),
                    Mimes::guessTypeFromExtension(
                        pathinfo($episode->transcript_file_url, PATHINFO_EXTENSION)
                    ) ?? 'text/html',
                );
                $transcriptElement->addAttribute('language', $podcast->language_code);
            }
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
        $episode->description,
    ) ?>" />
    <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
    <link rel="stylesheet" href="/assets/index.css" />
    <?= service('vite')->asset('styles/index.css', 'css') ?>
    <link rel="canonical" href="<?= $episode->link ?>" />
</head>

+0 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@
    $podcast->description,
) ?>" />
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<link rel="stylesheet" href="/assets/index.css"/>
<link rel="canonical" href="<?= current_url() ?>" />
<meta property="og:title" content="<?= $podcast->title ?>" />
<meta property="og:description" content="<?= $podcast->description ?>" />
+0 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@
    $podcast->description,
) ?>" />
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<link rel="stylesheet" href="/assets/index.css"/>
<link rel="canonical" href="<?= current_url() ?>" />
<meta property="og:title" content="<?= $podcast->title ?>" />
<meta property="og:description" content="<?= $podcast->description ?>" />
+0 −1
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@
    $podcast->description,
) ?>" />
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<link rel="stylesheet" href="/assets/index.css" />
<link rel="canonical" href="<?= current_url() ?>" />
<meta property="og:title" content="<?= $podcast->title ?>" />
<meta property="og:description" content="<?= $podcast->description ?>" />
Loading