Fix #1663 add meta tag for author

This commit is contained in:
Kijin Sung 2021-03-31 21:01:07 +09:00
parent b7c3aa1790
commit 4bf232569c
7 changed files with 19 additions and 0 deletions

View file

@ -611,6 +611,13 @@ class HTMLDisplayHandler
}
}
// Add author name for articles.
if ($page_type === 'article' && $permitted && config('seo.og_use_nick_name'))
{
Context::addMetaTag('author', $oDocument->getNickName());
Context::addOpenGraphData('og:article:author', $oDocument->getNickName());
}
// Add datetime for articles.
if ($page_type === 'article' && $permitted && config('seo.og_use_timestamps'))
{