diff --git a/src/lib/Headline/Headline.svelte b/src/lib/Headline/Headline.svelte index 62c1a28..d827a81 100644 --- a/src/lib/Headline/Headline.svelte +++ b/src/lib/Headline/Headline.svelte @@ -15,7 +15,7 @@ export let description = null; /** - * Optional eyebrow to be displayed above the headline. + * Optional eyebrow to be displayed above the headline; determines eyebrow link. * @type {string | null} */ export let eyebrow = null; @@ -55,32 +55,34 @@
{eyebrow}
+ {#if eyebrow.toLowerCase() == "data tool"} +{eyebrow}
+ {:else if eyebrow.toLowerCase() == "story"} +{eyebrow}
+ {:else} +{eyebrow}
+ {/if} {/if} {#if $$slots.headline}{description}
{/if} {#if $$slots.date}@@ -91,8 +93,6 @@
{/if}