mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Move some meta tags back above the <title>
원칙적으로 순서는 관계가 없으나, description이 title보다 먼저 나와야 한다고 주장하는 변태들이 있으므로 빌미를 주지 않기 위해 상단으로 다시 옮김.
This commit is contained in:
parent
e6bd94855e
commit
76bb57ad80
2 changed files with 8 additions and 8 deletions
|
|
@ -512,7 +512,7 @@ class HTMLDisplayHandler
|
|||
$description = Context::getMetaTag('description');
|
||||
}
|
||||
Context::addOpenGraphData('og:description', $description);
|
||||
Context::addMetaTag('description', $description, false, false);
|
||||
Context::addMetaTag('description', $description);
|
||||
}
|
||||
|
||||
// Add metadata about this page.
|
||||
|
|
@ -669,7 +669,7 @@ class HTMLDisplayHandler
|
|||
// Add author name for articles.
|
||||
if ($page_type === 'article' && $permitted && config('seo.og_use_nick_name'))
|
||||
{
|
||||
Context::addMetaTag('author', $oDocument->getNickName(), false, false);
|
||||
Context::addMetaTag('author', $oDocument->getNickName());
|
||||
Context::addOpenGraphData('og:article:author', $oDocument->getNickName());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -866,29 +866,29 @@ class ModuleHandler extends Handler
|
|||
$module_config = ModuleModel::getModuleConfig('module');
|
||||
if (!empty($module_info->meta_keywords))
|
||||
{
|
||||
Context::addMetaTag('keywords', $module_info->meta_keywords, false, false);
|
||||
Context::addMetaTag('keywords', $module_info->meta_keywords);
|
||||
}
|
||||
elseif (!empty($site_module_info->settings->meta_keywords))
|
||||
{
|
||||
Context::addMetaTag('keywords', $site_module_info->settings->meta_keywords, false, false);
|
||||
Context::addMetaTag('keywords', $site_module_info->settings->meta_keywords);
|
||||
}
|
||||
elseif (!empty($module_config->meta_keywords))
|
||||
{
|
||||
Context::addMetaTag('keywords', $module_config->meta_keywords, false, false);
|
||||
Context::addMetaTag('keywords', $module_config->meta_keywords);
|
||||
}
|
||||
|
||||
// Set meta description.
|
||||
if (!empty($module_info->meta_description))
|
||||
{
|
||||
Context::addMetaTag('description', $module_info->meta_description, false, false);
|
||||
Context::addMetaTag('description', $module_info->meta_description);
|
||||
}
|
||||
elseif (!empty($site_module_info->settings->meta_description))
|
||||
{
|
||||
Context::addMetaTag('description', $site_module_info->settings->meta_description, false, false);
|
||||
Context::addMetaTag('description', $site_module_info->settings->meta_description);
|
||||
}
|
||||
elseif (!empty($module_config->meta_description))
|
||||
{
|
||||
Context::addMetaTag('description', $module_config->meta_description, false, false);
|
||||
Context::addMetaTag('description', $module_config->meta_description);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue