- {#if $$slots.byline}
-
-
- {:else}
- By
- {#if authors.length > 0}
- {#each authors as author, i}
-
- {author.trim()}{#if authors.length > 1 && i < authors.length - 2},{/if}
- {#if authors.length > 1 && i === authors.length - 2}and {/if}
- {/each}
- {:else}
+ By
+ {#if authors.length > 0}
+ {#each authors as author, i}
Reuters
- {/if}
+ {author.trim()}{#if authors.length > 1 && i < authors.length - 2},{/if}
+ {#if authors.length > 1 && i === authors.length - 2}and {/if}
+ {/each}
+ {:else}
+
Reuters
{/if}
- {#if $$slots.published}
+ {#if customPublished}
-
-
+
+
{:else if isValidDate(publishTime)}
Published
-
{/if}
- {#if $$slots.updated}
+ {#if customUpdated}
-
-
+
+
+ {@render customUpdated()}
+
{:else if isValidDate(publishTime) && isValidDate(updateTime)}
Last updated
-
+
{#if areSameDay(new Date(publishTime), new Date(updateTime))}
{formatTime(updateTime)}
{:else}