Skip to content

Commit

Permalink
fix Package_Summary homepage formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Mar 23, 2024
1 parent 1bdd980 commit 37e6790
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-boats-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ryanatkn/fuz": patch
---

fix `Package_Summary` homepage formatting
5 changes: 3 additions & 2 deletions src/lib/Package_Summary.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import {page} from '$app/stores';
import {format_host, type Package_Meta} from '@ryanatkn/gro/package_meta.js';
import {strip_end, strip_start} from '@ryanatkn/belt/string.js';
import type {Package_Meta} from '@ryanatkn/gro/package_meta.js';
export let pkg: Package_Meta; // TODO normalized version with cached primitives?
Expand All @@ -22,7 +23,7 @@
<slot name="homepage_url" {homepage_url}
><div class="mb_lg">
<a class="chip" class:selected={homepage_url === $page.url.href} href={homepage_url}
>{format_host(homepage_url)}</a
>{strip_end(strip_start(homepage_url, 'https://'), '/')}</a
>
</div></slot
>
Expand Down

0 comments on commit 37e6790

Please sign in to comment.