#website link isn't showing metadata when pasting it in discord?

14 messages · Page 1 of 1 (latest)

primal rampart
#
 <head>
        <meta name="twitter:card" content='summary'/>
        <meta name="twitter:title" content="Welcome to my Portfolio"/>
        <meta name='twtter:description' content='A Passionate Software Engineer'/>
        <meta name='twitter:image' content='./mainimg.png' />
        <meta name='twitter:author' content='Name here'/>
        </head>

i put this layout.tsx, however I am wondering what the difference between Next's Head and native head?

indigo sandalBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

primal rampart
#

Now i am trying paste the meta tags into page.tsx, considering it is server component, let's see...

primal rampart
#

it worked.

indigo sandalBOT
chilly flame
primal rampart
primal rampart
chilly flame
#

try creating export const metadata: Metadata = { ... }

#

and then use the intellisense

#

{
twitter: ...
}

primal rampart
#

ok i see i see