Skip to content

Commit

Permalink
fix: links now have real href and data-href
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Jul 1, 2021
1 parent adf677b commit 1f6b61c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/List.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
{#each realItems as realItem}
<li>
<a
href="null"
data-href={realItem.to.split("/").last()}
href={realItem.to.split("/").last()}
class={realItem.cls}
on:click={async () => openLink(realItem)}
on:mouseover={hoverPreview}
Expand All @@ -62,7 +63,8 @@
{#each impliedItems as impliedItem}
<li class="breadcrumbs-implied">
<a
href="null"
data-href={impliedItem.to.split("/").last()}
href={impliedItem.to.split("/").last()}
class={impliedItem.cls}
on:click={async () => openLink(impliedItem)}
on:mouseover={hoverPreview}
Expand Down
9 changes: 6 additions & 3 deletions src/Square.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@
{#each realItems as realItem}
<li>
<a
href="null"
data-href={realItem.to.split("/").last()}
href={realItem.to.split("/").last()}
class={realItem.cls}
on:click={async () => openLink(realItem)}
on:mouseover={hoverPreview}
>{realItem.to.split("/").last()}
>
{realItem.to.split("/").last()}
</a>
</li>
{/each}
Expand All @@ -59,7 +61,8 @@
{#each impliedItems as impliedItem}
<li class="breadcrumbs-implied">
<a
href="null"
data-href={impliedItem.to.split("/").last()}
href={impliedItem.to.split("/").last()}
class={impliedItem.cls}
on:click={async () => openLink(impliedItem)}
on:mouseover={hoverPreview}
Expand Down

0 comments on commit 1f6b61c

Please sign in to comment.