Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/components/EducationResource/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ interface Props {
}

const { name, featuredImage, featuredImageAlt } = Astro.props;
const authorHTML = (await Astro.slots.render("author")).replace(/\<p[^\>]*\>/gm, "");

---
<li class="col-span-3">
Expand All @@ -21,6 +22,7 @@ const { name, featuredImage, featuredImageAlt } = Astro.props;
</div>
<div class="rendered-markdown">
<div class="text-sm">
<h4 set:html={authorHTML} />
<slot name="description" />
</div>
<div class="text-sm leading-8 [&_a]:whitespace-nowrap [&_a]:rounded-full [&_a]:mr-1 [&_a]:py-1 [&_a]:px-2 [&_a]:outline [&_a]:outline-1 [&_a]:outline-[var(--type-magenta-dark)]">
Expand Down