2018-12-15 08:19:04 -06:00
|
|
|
extends ./base
|
2018-05-05 11:34:48 -05:00
|
|
|
|
|
|
|
block vars
|
|
|
|
- const title = user.name ? `${user.name} (@${user.username})` : `@${user.username}`;
|
2018-09-01 09:12:51 -05:00
|
|
|
- const url = `${config.url}/@${(user.host ? `${user.username}@${user.host}` : user.username)}`;
|
2018-05-05 11:34:48 -05:00
|
|
|
|
|
|
|
block title
|
2019-02-06 07:27:23 -06:00
|
|
|
= `${title} | ${instanceName}`
|
2018-05-05 11:34:48 -05:00
|
|
|
|
|
|
|
block desc
|
2019-04-11 11:52:25 -05:00
|
|
|
meta(name='description' content= profile.description)
|
2018-05-05 11:34:48 -05:00
|
|
|
|
2018-12-15 08:19:04 -06:00
|
|
|
block og
|
2018-05-05 11:37:32 -05:00
|
|
|
meta(property='og:type' content='blog')
|
2018-05-05 11:34:48 -05:00
|
|
|
meta(property='og:title' content= title)
|
2019-04-11 11:52:25 -05:00
|
|
|
meta(property='og:description' content= profile.description)
|
2018-05-05 11:34:48 -05:00
|
|
|
meta(property='og:url' content= url)
|
2022-04-17 07:18:18 -05:00
|
|
|
meta(property='og:image' content= avatarUrl)
|
2023-05-19 20:35:23 -05:00
|
|
|
meta(property='twitter:card' content='summary')
|
2018-12-15 08:19:04 -06:00
|
|
|
|
|
|
|
block meta
|
2020-11-25 06:31:34 -06:00
|
|
|
if user.host || profile.noCrawle
|
|
|
|
meta(name='robots' content='noindex')
|
2023-05-11 02:22:46 -05:00
|
|
|
if profile.preventAiLearning
|
2023-05-09 20:54:56 -05:00
|
|
|
meta(name='robots' content='noimageai')
|
2023-05-09 20:52:41 -05:00
|
|
|
meta(name='robots' content='noai')
|
2020-11-25 06:31:34 -06:00
|
|
|
|
2019-04-03 12:22:50 -05:00
|
|
|
meta(name='misskey:user-username' content=user.username)
|
|
|
|
meta(name='misskey:user-id' content=user.id)
|
|
|
|
|
2019-04-11 11:52:25 -05:00
|
|
|
if profile.twitter
|
|
|
|
meta(name='twitter:creator' content=`@${profile.twitter.screenName}`)
|
2018-12-15 17:49:38 -06:00
|
|
|
|
2019-09-23 14:08:52 -05:00
|
|
|
if !sub
|
|
|
|
if !user.host
|
|
|
|
link(rel='alternate' href=`${config.url}/users/${user.id}` type='application/activity+json')
|
|
|
|
if user.uri
|
|
|
|
link(rel='alternate' href=user.uri type='application/activity+json')
|
|
|
|
if profile.url
|
|
|
|
link(rel='alternate' href=profile.url type='text/html')
|
2019-07-17 10:11:39 -05:00
|
|
|
|
2019-07-25 10:17:34 -05:00
|
|
|
each m in me
|
|
|
|
link(rel='me' href=`${m}`)
|