mirror of
https://github.com/importantimport/urara-docs.git
synced 2024-09-19 18:08:40 +08:00
13 lines
386 B
Svelte
13 lines
386 B
Svelte
<script lang="ts">
|
|
import { site } from '$lib/config/site'
|
|
export let post: Urara.Post
|
|
</script>
|
|
|
|
<a
|
|
href={`https://www.addtoany.com/share#url=${site.protocol + site.domain + post.path}&title=${encodeURI(
|
|
post.title ?? post.path.slice(1)
|
|
)}`}
|
|
class="btn btn-lg btn-circle btn-ghost bg-base-100 shadow-lg hover:shadow-xl">
|
|
<span class="i-heroicons-outline-share" />
|
|
</a>
|