$view = view('app')
->with('title', $tournament->getTranslatedTitle())
->with('description', $tournament->getTranslatedShort());
+ if ($tournament->description) {
+ if ($tournament->description->image) {
+ $view = $view->with('image', url($tournament->description->image));
+ } elseif ($tournament->description->gif) {
+ $view = $view->with('image', url($tournament->description->gif));
+ }
+ }
return $view;
}
</Col>
<Col sm={6}>
<Link className="front-panel" to="/tournaments/mystery-zirkus">
- <Image alt="" className="image" src="/media/alttp/front.png" />
+ <Image alt="" className="image" src="/media/alttp/circus.png" />
<div className="title">
{t('front.circus')}
</div>
content={getTranslation(tournament.description, 'short', i18n.language)}
/>
</Helmet> : null}
+ {tournament.description?.image ? <Helmet>
+ <meta property="og:image" content={tournament.description.image} />
+ <meta property="twitter:image" content={tournament.description.image} />
+ </Helmet> : null}
<CanonicalLinks base={`/tournaments/${tournament.name || tournament.id}`} />
<Detail
actions={actions}