feat: add schema.org json-ld objects to podcasts, episodes, posts and comments pages

- refactor meta-tags by generating them in the controller and injecting them into the views
- use
`melbahja/seo` library to build opengraph and twitter meta-tags + schema.org objects
This commit is contained in:
Yassine Doghri 2021-11-12 16:31:35 +00:00
commit 902f959b30
45 changed files with 449 additions and 354 deletions

View file

@ -95,6 +95,7 @@ class EpisodeCommentController extends BaseController
if (! ($cachedView = cache($cacheName))) {
$data = [
'metatags' => get_episode_comment_metatags($this->comment),
'podcast' => $this->podcast,
'actor' => $this->actor,
'episode' => $this->episode,