2021-04-24 16:38:24 +03:00
|
|
|
extends ./base
|
|
|
|
|
|
|
|
block vars
|
|
|
|
- const user = post.user;
|
|
|
|
- const title = post.title;
|
|
|
|
- const url = `${config.url}/gallery/${post.id}`;
|
|
|
|
|
|
|
|
block title
|
|
|
|
= `${title} | ${instanceName}`
|
|
|
|
|
|
|
|
block desc
|
|
|
|
meta(name='description' content= post.description)
|
|
|
|
|
|
|
|
block og
|
|
|
|
meta(property='og:type' content='article')
|
|
|
|
meta(property='og:title' content= title)
|
|
|
|
meta(property='og:description' content= post.description)
|
|
|
|
meta(property='og:url' content= url)
|
|
|
|
meta(property='og:image' content= post.files[0].thumbnailUrl)
|
|
|
|
|
|
|
|
block meta
|
|
|
|
if user.host || profile.noCrawle
|
|
|
|
meta(name='robots' content='noindex')
|
2023-05-11 10:22:46 +03:00
|
|
|
if profile.preventAiLearning
|
2023-05-10 04:54:56 +03:00
|
|
|
meta(name='robots' content='noimageai')
|
2023-05-10 04:52:41 +03:00
|
|
|
meta(name='robots' content='noai')
|
2021-04-24 16:38:24 +03:00
|
|
|
|
|
|
|
meta(name='misskey:user-username' content=user.username)
|
|
|
|
meta(name='misskey:user-id' content=user.id)
|
|
|
|
|
|
|
|
// todo
|
|
|
|
if user.twitter
|
|
|
|
meta(name='twitter:creator' content=`@${user.twitter.screenName}`)
|
|
|
|
|
|
|
|
if !user.host
|
|
|
|
link(rel='alternate' href=url type='application/activity+json')
|