LandingPage: treat as HTML field, prefer short_description

This commit is contained in:
Alex Gleason
2022-09-12 18:22:25 -05:00
parent 74b2b84458
commit da75e0016d
2 changed files with 21 additions and 1 deletions

View File

@ -113,7 +113,10 @@ const LandingPage = () => {
</h1>
<Text size='lg'>
{instance.description}
<span
className='instance-description'
dangerouslySetInnerHTML={{ __html: instance.short_description || instance.description }}
/>
</Text>
</Stack>
</div>

View File

@ -112,3 +112,20 @@ noscript {
div[data-viewport-type="window"] {
position: static !important;
}
// Instance HTML from the API.
.instance-description {
a {
@apply underline;
}
b,
strong {
@apply font-bold;
}
i,
em {
@apply italic;
}
}