2024-08-16 17:33:16 +00:00
|
|
|
<template>
|
|
|
|
<v-container class="content-container mx-auto">
|
|
|
|
<div class="my-3 mx-[3.5ch]">
|
|
|
|
<h1 class="text-2xl">{{ t("navPosts") }}</h1>
|
2024-08-18 17:18:27 +00:00
|
|
|
<span>{{ t("navPostsCaptionWithPublisher", [publisher.data.name]) }}</span>
|
2024-08-16 17:33:16 +00:00
|
|
|
</div>
|
|
|
|
|
2024-08-18 17:18:27 +00:00
|
|
|
<post-list v-if="publisher.type == 'realm'" :realm="route.params.id?.toString()" />
|
|
|
|
<post-list v-else :author="route.params.id?.toString()" />
|
2024-08-16 17:33:16 +00:00
|
|
|
</v-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
const route = useRoute()
|
2024-08-18 17:18:27 +00:00
|
|
|
const config = useRuntimeConfig()
|
2024-08-16 17:33:16 +00:00
|
|
|
|
2024-08-18 17:18:27 +00:00
|
|
|
const { data: publisher } = useFetch<any>(`${config.public.solarNetworkApi}/cgi/co/publishers/${route.params.id}`)
|
2024-08-16 17:33:16 +00:00
|
|
|
|
|
|
|
useHead({
|
|
|
|
title: t("navPosts"),
|
|
|
|
})
|
|
|
|
|
|
|
|
useSeoMeta({
|
|
|
|
title: t("navPosts"),
|
|
|
|
ogTitle: t("navPosts"),
|
|
|
|
description: t("navPostsCaption"),
|
|
|
|
ogDescription: t("navPostsCaption"),
|
|
|
|
ogType: "website",
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.content-container {
|
|
|
|
max-width: 70ch !important;
|
|
|
|
}
|
|
|
|
</style>
|