Replies: 3 comments
-
---
import Content from '~/components/widgets/Content.astro';
import Layout from '~/layouts/PageLayout.astro';
const metadata = {
title: 'Test Hero',
};
const RichText = `
<p><strong>Rich</strong> HTML <em>here</em></p>
<br />
<p>Non minim aliquip cillum tempor aliquip minim nostrud cillum nisi laborum officia culpa nostrud.</p>
<br />
<p>Ea nulla consectetur aliqua irure labore tempor do ut ullamco irure quis fugiat. Irure ad dolore enim aliqua occaecat mollit occaecat ex culpa laboris excepteur sunt in dolor. Do cillum consectetur laborum voluptate sunt enim aliquip esse amet enim pariatur. Ut sint irure ullamco ullamco qui consectetur incididunt culpa nulla.</p>
`;
---
<Layout metadata={metadata}>
<Content
title="Test Hero"
id="testhero"
columns={2}
items={[
{
callToAction: {
target: '_blank',
text: RichText,
href: '#',
},
},
{
callToAction: {
target: '_blank',
text: `
<p><strong>Rich</strong> HTML <em>here</em></p>
<br />
<p>Non minim aliquip cillum tempor aliquip minim nostrud cillum nisi laborum officia culpa nostrud.</p>
<br />
<p>Ea nulla consectetur aliqua irure labore tempor do ut ullamco irure quis fugiat. Irure ad dolore enim aliqua occaecat mollit occaecat ex culpa laboris excepteur sunt in dolor. Do cillum consectetur laborum voluptate sunt enim aliquip esse amet enim pariatur. Ut sint irure ullamco ullamco qui consectetur incididunt culpa nulla.</p>
`,
href: '#',
},
},
]}
/>
</Layout>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@prototypa I recommend moving this to Discussions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
there is product.astro file
and that file has CallToAction section with title and subtitle.
apparently only one line is allowed in every of strings, is it?
anyway, I want to be able to put as many lines as I would like, and even have an article
in that subtitle area - or maybe even reconstruct it to look like that [in a box] but be freely
transformed in an article - with multiple sentences.
this is something I need to do for my client, and I'd like some help.
my current error is:
Unterminated string literal
Beta Was this translation helpful? Give feedback.
All reactions