Skip to content

Commit db43d67

Browse files
adding noindex for un finished registered users
1 parent 039b853 commit db43d67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/dev/[username].astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ const fileData = await getRemoteFileData(
3030
if (fileData) {
3131
content = marked.parse(fileData);
3232
}
33+
34+
const noIndex = !('headline' in members_data[params.username])
3335
---
3436

35-
<ProfileLayout profile={members_data[params.username]} activeTab="profile" pageTitle="Perfil">
37+
<ProfileLayout profile={members_data[params.username]} activeTab="profile" pageTitle="Perfil" noIndex={noIndex}>
3638
<article
3739
class="my-5 prose-sm mx-auto px-10 py-6 prose-h2:mt-3 overflow-auto prose-a:underline prose-ul:list-disc prose-img:m-0 prose-img:inline break-words"
3840
set:html={content}

0 commit comments

Comments
 (0)