mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: 🔍 Block all AI crawlers in robots.txt, make users who opt out of indexing not-indexable
This commit is contained in:
parent
e74dbe3d59
commit
6c43374d8e
4 changed files with 39 additions and 0 deletions
|
|
@ -54,5 +54,11 @@ useServerSeoMeta({
|
|||
title: note.value?.account.display_name,
|
||||
description: note.value?.content,
|
||||
ogImage: note.value?.media_attachments[0]?.preview_url,
|
||||
robots: computed(() => ({
|
||||
noindex: !!note.value?.account.noindex,
|
||||
nofollow: !!note.value?.account.noindex,
|
||||
noarchive: !!note.value?.account.noindex,
|
||||
noimageindex: !!note.value?.account.noindex,
|
||||
})),
|
||||
});
|
||||
</script>
|
||||
|
|
@ -56,5 +56,11 @@ useServerSeoMeta({
|
|||
description: computed(() =>
|
||||
account.value ? account.value.note : undefined,
|
||||
),
|
||||
robots: computed(() => ({
|
||||
noindex: !!account.value?.noindex,
|
||||
nofollow: !!account.value?.noindex,
|
||||
noarchive: !!account.value?.noindex,
|
||||
noimageindex: !!account.value?.noindex,
|
||||
})),
|
||||
});
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue