Migrate blog to new astro Content Collections

This commit is contained in:
prototypa
2023-01-01 18:32:52 -05:00
parent 785b66968a
commit d7b7baa414
15 changed files with 71 additions and 40 deletions

View File

@ -54,10 +54,10 @@ const items = [
<div class="space-y-8">
{subitems.map(({ question, answer }) => (
<div>
<p class="mb-4 text-xl font-bold">
<h3 class="mb-4 text-xl font-bold">
<Icon name="tabler:arrow-down-right" class="w-7 h-7 text-primary-500 inline-block" />
{question}
</p>
</h3>
{answer.split('\n\n').map((paragraph) => (
<p class="text-gray-700 dark:text-gray-400 mb-2" set:html={paragraph} />
))}