116 lines
3.4 KiB
HTML
116 lines
3.4 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"}{site:seotkd code="keywords" page="rank_index" /}{/block}
|
|
{block name="description"}{site:seotkd code="description" page="rank_index" /}{/block}
|
|
|
|
|
|
{block name="head"}
|
|
|
|
<meta name="robots" content="index,follow">
|
|
<link rel="canonical" href='https://{$DomainModel->d_domain}{$strRankUrlTemp}'>
|
|
|
|
{// 社交媒体标签}
|
|
<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" />
|
|
|
|
<script type="application/ld+json">
|
|
[
|
|
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "CollectionPage",
|
|
"name": "{$DomainModel->d_name} - 最新排行榜推荐",
|
|
"url": "https://{$DomainModel->d_domain}",
|
|
"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"
|
|
}
|
|
"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",
|
|
"@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}
|
|
</section>
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block name="customize"}
|
|
|
|
{/block} |