14 lines
343 B
Svelte
14 lines
343 B
Svelte
<script>
|
|
import { Link } from "svelte-routing";
|
|
|
|
export let tag;
|
|
export let num;
|
|
|
|
let tagType = tag.split(":")[0] ?? "";
|
|
let tagName = tag.split(":")[1] ?? "";
|
|
let tagDisplay = tagName.split("_").join(" ");
|
|
|
|
</script>
|
|
|
|
<Link to="/posts?tags={tagName}">{tagDisplay} <span class="is-pulled-right">{num}</span></Link>
|