fix(videoGpt1): normalize seo pages and fallback services
This commit is contained in:
@@ -5,20 +5,28 @@
|
||||
{/block}
|
||||
|
||||
{block name="title"}{site:seotkd code="title" page="rank_index" /}{/block}
|
||||
{block name="keywords"}{site:seotkd code="keywords" page="rank_index" /}{/block}
|
||||
{block name="keywords"}{php}
|
||||
$strRankKeywords = trim((string)($DomainModel->d_keywords ?: $DomainModel->d_name));
|
||||
$strRankKeywords = $strRankKeywords !== ''
|
||||
? $strRankKeywords . ',热门榜单,视频排行'
|
||||
: trim((string)$DomainModel->d_name) . ',热门榜单,视频排行';
|
||||
{/php}{$strRankKeywords}{/block}
|
||||
{block name="description"}{site:seotkd code="description" page="rank_index" /}{/block}
|
||||
|
||||
|
||||
{block name="head"}
|
||||
{php}
|
||||
$strRankCanonicalUrl = 'https://' . $DomainModel->d_domain . $strRankUrlTemp;
|
||||
{/php}
|
||||
|
||||
<meta name="robots" content="index,follow">
|
||||
<link rel="canonical" href='https://{$DomainModel->d_domain}{$strRankUrlTemp}'>
|
||||
<link rel="canonical" href='{$strRankCanonicalUrl}'>
|
||||
|
||||
{// 社交媒体标签}
|
||||
<meta property="og:title" content='{site:seotkd code="title" page="rank_index" /}' />
|
||||
<meta property="og:description" content='{site:seotkd code="description" page="rank_index" /}' />
|
||||
<meta property="og:url" content="https://{$DomainModel->d_domain}" />
|
||||
<meta property="og:type" content="video.movie" />
|
||||
<meta property="og:url" content="{$strRankCanonicalUrl}" />
|
||||
<meta property="og:type" content="website" />
|
||||
|
||||
<script type="application/ld+json">
|
||||
[
|
||||
@@ -27,7 +35,7 @@
|
||||
"@context": "https://schema.org",
|
||||
"@type": "CollectionPage",
|
||||
"name": "{$DomainModel->d_name} - 最新排行榜推荐",
|
||||
"url": "https://{$DomainModel->d_domain}",
|
||||
"url": "{$strRankCanonicalUrl}",
|
||||
"headline": '{site:seotkd code="title" page="rank_index" /}',
|
||||
"description": '{site:seotkd code="description" page="rank_index" /}',
|
||||
"potentialAction": {
|
||||
@@ -35,24 +43,6 @@
|
||||
"target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}",
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
"hasPart": [
|
||||
{video:ranklist count="5"
|
||||
sort_type="weekly"
|
||||
d_key="key" d_val="Video" cache_life="3600"}
|
||||
|
||||
{if $key < 10 }
|
||||
{
|
||||
"@type": "VideoObject",
|
||||
"name": "{$Video.v_name}",
|
||||
"description": "{$Video.v_description}",
|
||||
"thumbnailUrl": '{$Video.v_pic}',
|
||||
"uploadDate": "{:date('Y-m-d')}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}',
|
||||
},
|
||||
{/if}
|
||||
{/video:ranklist}
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
@@ -71,7 +61,7 @@
|
||||
"item": "https://{$DomainModel->d_domain}{$strRankUrlTemp}"
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
]
|
||||
</script>
|
||||
|
||||
@@ -105,6 +95,9 @@
|
||||
{include file="module/list/shell/_shell_router" /}
|
||||
|
||||
{/foreach}
|
||||
|
||||
{video:seocopy scene="rank_index" export_name="seoCopy" /}
|
||||
{include file="module/seo_copy/collection" /}
|
||||
</section>
|
||||
|
||||
{/block}
|
||||
@@ -113,4 +106,4 @@
|
||||
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user