Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelmarconi committed Jan 7, 2025
1 parent f85da18 commit 40961fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/Headline/Headline.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
<div class="headline-wrap {variant}">
{#if $$slots.eyebrow}
<!--
Optional slot for custom content in the eyebrow slot.
-->
<slot name="eyebrow" />
{:else if eyebrow}
{#if eyebrow.toLowerCase() == "data tool"}
Expand All @@ -71,18 +73,24 @@
{/if}
{#if $$slots.headline}
<!--
Optional slot for custom content in the headline slot.
-->
<slot name="headline" />
{:else}
<h1 class="headline-page-headline">{headline}</h1>
{/if}
{#if $$slots.description}
<!--
Optional slot for custom content in the description slot.
-->
<slot name="description" />
{:else if description}
<p class="headline-description">{description}</p>
{/if}
{#if $$slots.date}
<!--
Optional slot for custom content in the date slot.
-->
<slot name="date" />
{:else if date}
<p class="headline-date">
Expand All @@ -93,6 +101,8 @@
</p>
{/if}
<!--
Optional slot for extra content to include below the date and above the share buttons.
-->
<slot name="extra" />
<hr class="headline-rule" />
</div>
Expand Down

0 comments on commit 40961fb

Please sign in to comment.