return <>
<div className="d-flex align-items-center justify-content-between">
- <h1>{event.title}</h1>
+ <h1>
+ {(event.description && getTranslation(event.description, 'title', i18n.language))
+ || event.title}
+ </h1>
{event.description && actions.editContent ?
<Button
className="ms-3"
import {
mayEditContent,
} from '../helpers/permissions';
+import { getTranslation } from '../helpers/Technique';
import { useUser } from '../helpers/UserContext';
import i18n from '../i18n';
return <ErrorBoundary>
<Helmet>
- <title>{event.title}</title>
+ <title>
+ {(event.description && getTranslation(event.description, 'title', i18n.language))
+ || event.title}
+ </title>
</Helmet>
+ {event.description ? <Helmet>
+ <meta
+ name="description"
+ content={getTranslation(event.description, 'short', i18n.language)}
+ />
+ </Helmet> : null}
<CanonicalLinks base={`/events/${event.name}`} />
<Container>
<Detail actions={actions} event={event} />