feat: set podcast / episode description in the pages description meta tag

strip html tags from description_html attributes to generate text only description

closes #44
This commit is contained in:
Yassine Doghri 2020-10-08 18:06:30 +00:00
parent 4d3e9c8c02
commit 1c4a50442b
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,9 @@
<head>
<meta charset="UTF-8"/>
<title><?= $episode->title ?></title>
<meta name="description" content="Castopod is an open-source hosting platform made for podcasters who want engage and interact with their audience."/>
<meta name="description" content="<?= strip_tags(
$episode->description_html
) ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<link rel="stylesheet" href="/assets/index.css"/>

View File

@ -6,7 +6,9 @@
<head>
<meta charset="UTF-8"/>
<title><?= $podcast->title ?></title>
<meta name="description" content="Castopod is an open-source hosting platform made for podcasters who want engage and interact with their audience."/>
<meta name="description" content="<?= strip_tags(
$podcast->description_html
) ?>"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<link rel="stylesheet" href="/assets/index.css"/>