Files
SEONexus/code/app/home/view/videoGpt1/video/getRankIndex.html

110 lines
3.2 KiB
HTML

{extend name="base" /}
{block name="get-data"}
{assign name="arrSlots" value="$TpStyle.template_cfg.pages.rank_home.slots"}
{/block}
{block name="title"}{site:seotkd code="title" 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='{$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="{$strRankCanonicalUrl}" />
<meta property="og:type" content="website" />
<script type="application/ld+json">
[
{
"@context": "https://schema.org",
"@type": "CollectionPage",
"name": "{$DomainModel->d_name} - 最新排行榜推荐",
"url": "{$strRankCanonicalUrl}",
"headline": '{site:seotkd code="title" page="rank_index" /}',
"description": '{site:seotkd code="description" page="rank_index" /}',
"potentialAction": {
"@type": "SearchAction",
"target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}",
"query-input": "required name=search_term_string"
}
},
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "首页",
"item": "https://{$DomainModel->d_domain}"
},
{
"@type": "ListItem",
"position": 2,
"name": "排行榜首页",
"item": "https://{$DomainModel->d_domain}{$strRankUrlTemp}"
}
]
}
]
</script>
{/block}
{block name="head-css"}
{/block}
{block name="head-js"}
{/block}
{block name='body-class'}rank-index{/block}
{block name="main"}
<section class="{$TpStyle.dom_prefix}-rank-home">
{foreach $arrSlots as $i => $Slot}
{assign name="listCfg" value="$TpStyle.template_cfg.list_layout[$Slot.layout_key]"}
{assign name="title" value="$Slot.title_text"}
{assign name="limit" value="$listCfg['layout']['max_items']"}
{video:ranklistexp count="$limit"
sort_type="$Slot.sort_type"
d_key="key" d_val="Video" cache_life="3600" export_name="__LIST__" /}
{include file="module/list/title/_title_router" /}
{include file="module/list/shell/_shell_router" /}
{/foreach}
{video:seocopy scene="rank_index" export_name="seoCopy" /}
{include file="module/seo_copy/collection" /}
</section>
{/block}
{block name="customize"}
{/block}