elk/pages/tags/[tag].vue
2022-11-25 19:48:48 +08:00

23 lines
429 B
Vue

<script setup lang="ts">
const params = useRoute().params
const tag = $computed(() => params.tag as string)
const paginator = masto.timelines.getHashtagIterable(tag)
useHead({
title: `#${tag}`,
})
</script>
<template>
<MainContent>
<template #title>
<span text-lg font-bold>#{{ tag }}</span>
</template>
<slot>
<TimelinePaginator :paginator="paginator" />
</slot>
</MainContent>
</template>