fix:replace underscore with spaces on display

This commit is contained in:
Damillora 2022-04-14 19:40:43 +07:00
parent 2cc9705845
commit ba86dd3c01
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
let tagType = tag.split(":")[0] ?? "";
let tagName = tag.split(":")[1] ?? "";
let tagDisplay = tagName.split("_").join(" ");
</script>
<Link class="button is-rounded is-primary is-small m-1" to="/posts?tags={tagName}">{tagName}</Link>
<Link class="button is-rounded is-primary is-small m-1" to="/posts?tags={tagName}">{tagDisplay}</Link>