mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
Fix #492 inconsistency between meta description and og:description
This commit is contained in:
parent
e8d4c1f27f
commit
9fe37502b8
1 changed files with 3 additions and 1 deletions
|
|
@ -414,7 +414,9 @@ class HTMLDisplayHandler
|
||||||
Context::addOpenGraphData('og:site_name', Context::getSiteTitle());
|
Context::addOpenGraphData('og:site_name', Context::getSiteTitle());
|
||||||
if ($page_type === 'article' && config('seo.og_extract_description'))
|
if ($page_type === 'article' && config('seo.og_extract_description'))
|
||||||
{
|
{
|
||||||
Context::addOpenGraphData('og:description', trim(utf8_normalize_spaces($oDocument->getContentText(200))));
|
$description = trim(utf8_normalize_spaces($oDocument->getContentText(200)));
|
||||||
|
Context::addOpenGraphData('og:description', $description);
|
||||||
|
Context::addMetaTag('description', $description);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue