按seo需求更改站点地图
This commit is contained in:
@@ -1,23 +1,25 @@
|
||||
|
||||
<footer class="eef3f2 footer text-center">
|
||||
<div class="a73f1c footer-nav hidden-xs">
|
||||
<!-- <a rel="nofollow" href="/map.html" target="_blank">网站地图</a>
|
||||
-
|
||||
<a href="/rss/index.xml" target="_blank">RSS地图</a>
|
||||
友情链接:
|
||||
<a href="/sitemap_index.xml" target="_blank">XML网站地图</a>
|
||||
{ad:list code="YOUQING_LIANJIE_GUANG_GAO" order="desc" limit="2" id="ad"}
|
||||
<a href="{$ad.gg_tiao_zhuan_di_zhi}" target="_blank">{$ad.gg_wen_zi}
|
||||
</a>
|
||||
|
||||
{/ad:list}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="a73f1c footer-nav hidden-xs">
|
||||
<a href="/sitemap.html" target="_blank">网站地图</a>
|
||||
-
|
||||
<a href="/rss/baidu.xml" target="_blank">百度Sitemap</a>
|
||||
-
|
||||
<a href="/rss/so.xml" target="_blank">360Sitemap</a>
|
||||
-
|
||||
<a href="/rss/google.xml" target="_blank">谷歌Sitemap</a>-->
|
||||
<a href="/sitemap_index.xml" target="_blank">XML网站地图</a>
|
||||
|
||||
<a href="/sitemap_index.xml" target="_blank">XML地图</a>
|
||||
-
|
||||
<a href="/robots.txt" target="_blank">网站地图</a>
|
||||
|
||||
{ad:list code="YOUQING_LIANJIE_GUANG_GAO" order="desc" limit="2" id="ad"}
|
||||
<a href="{$ad.gg_tiao_zhuan_di_zhi}" target="_blank">{$ad.gg_wen_zi}
|
||||
</a>
|
||||
{/ad:list}
|
||||
</div>
|
||||
<p>Copyright © 2020-2025 <b style=" font:Verdana, Arial, Helvetica, sans-serif"><a href="/">
|
||||
<font color="#CC0000">{$DomainModel->d_domain}</font>
|
||||
|
||||
40
code/app/home/view/videoLaoNiu/rss/baidu.xml
Normal file
40
code/app/home/view/videoLaoNiu/rss/baidu.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title>{$DomainModel->d_name}</title>
|
||||
<description>{$DomainModel->d_description}</description>
|
||||
<link>www.{$DomainModel->d_domain}</link>
|
||||
<language>zh-cn</language>
|
||||
<docs>{$DomainModel->d_name}</docs>
|
||||
<generator>Rss Powered By www.{$DomainModel->d_domain}</generator>
|
||||
|
||||
{video:list count="30"
|
||||
v_category_en="all"
|
||||
v_lang_en="all"
|
||||
v_area_en="all"
|
||||
v_year="all"
|
||||
sort_type="news"
|
||||
d_key="d_key" d_val="Video" cache_life="86400"}
|
||||
<item>
|
||||
<title>
|
||||
<?php echo html_entity_decode($Video['v_name'], ENT_QUOTES | ENT_XML1, 'UTF-8'); ?> {$Video.v_remarks}
|
||||
</title>
|
||||
<link>https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}</link>
|
||||
<author>
|
||||
{volist name='$Video.v_actor' id='vo' key='index'}
|
||||
{$vo} ,
|
||||
{/volist}
|
||||
</author>
|
||||
<pubDate>{$Video.v_publish_date}</pubDate>
|
||||
<description><![CDATA[
|
||||
<?php
|
||||
echo '《' . html_entity_decode($Video['v_name'], ENT_QUOTES | ENT_XML1, 'UTF-8') . '》'
|
||||
. html_entity_decode($Video['v_description'], ENT_QUOTES | ENT_XML1, 'UTF-8');
|
||||
?>
|
||||
]]></description>
|
||||
|
||||
</item>
|
||||
{/video:list}
|
||||
|
||||
</channel>
|
||||
</rss>
|
||||
18
code/app/home/view/videoLaoNiu/rss/so.xml
Normal file
18
code/app/home/view/videoLaoNiu/rss/so.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<sitemapindex>
|
||||
{video:list count="1000"
|
||||
v_category_en="all"
|
||||
v_lang_en="all"
|
||||
v_area_en="all"
|
||||
v_year="all"
|
||||
sort_type="news"
|
||||
d_key="d_key" d_val="Video" cache_life="86400"}
|
||||
|
||||
<sitemap>
|
||||
<loc>https://www.{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}</loc>
|
||||
<lastmod>{$Video.v_publish_date}</lastmod>
|
||||
</sitemap>
|
||||
|
||||
{/video:list}
|
||||
|
||||
</sitemapindex>
|
||||
146
code/app/home/view/videoLaoNiu/video/getMap.html
Normal file
146
code/app/home/view/videoLaoNiu/video/getMap.html
Normal file
@@ -0,0 +1,146 @@
|
||||
{extend name="base" /}
|
||||
|
||||
{block name="get-data"}
|
||||
{video:pagerexp page="$Request.get.page" limit="12"
|
||||
key="$Request.get.keyword"
|
||||
d_key="d_key"
|
||||
d_val="Video"
|
||||
p_val="page_data" button_num="5" cache_life="3600" func="generateSearchPager" export_name="resData" /}
|
||||
{site:grm page_code="h5_video_search" diff="0" num="30" g_key="arrGrm" /}
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="title"}{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}{/block}
|
||||
{block name="keywords"}{site:replace code="VIDEO@GETSEARCHVIDEO@KEYWORDS"}{/block}
|
||||
{block name="description"}{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}{/block}
|
||||
|
||||
|
||||
{block name="head"}
|
||||
<meta property="og:title" content='{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}'>
|
||||
<meta property="og:description" content='{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}'>
|
||||
<meta property="og:url" content='https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}'>
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:site_name" content='{$DomainModel->d_name}'>
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:title" content='{site:replace code="VIDEO@GETSEARCHVIDEO@TITLE"}'>
|
||||
<meta name="twitter:description" content='{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}'>
|
||||
<meta name="twitter:image:alt" content="动作电影 搜索结果第1页">
|
||||
|
||||
{// 结构化数据}
|
||||
<script type="application/ld+json">
|
||||
[
|
||||
{
|
||||
"@type": "WebSite",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}",
|
||||
"alternateName": "{$DomainModel->d_domain}",
|
||||
"description": "{site:replace code="VIDEO@INDEX@INDEX@DESCRIPTION"}",
|
||||
"potentialAction": {
|
||||
"@type": "SearchAction",
|
||||
"target": 'https://{$DomainModel->d_domain}{site:vsurl key="search_term_string" p="1"/}',
|
||||
"query-input": "required name=search_term_string"
|
||||
}
|
||||
|
||||
},
|
||||
{
|
||||
"@type": "CollectionPage",
|
||||
"name": "{$DomainModel->d_name} - {$DomainModel->d_logo_text}",
|
||||
"url": "https://{$DomainModel->d_domain}",
|
||||
"alternateName": "{$DomainModel->d_domain}",
|
||||
"description": '{site:replace code="VIDEO@GETSEARCHVIDEO@DESCRIPTION"}',
|
||||
"mainEntity": {
|
||||
"@type": "ItemList",
|
||||
"itemListElement": [
|
||||
{volist name="resData.data" id="Video" key="key"}
|
||||
{if $key < 5 }
|
||||
{
|
||||
"@type": "ListItem",
|
||||
"position": {$key},
|
||||
"item": {
|
||||
"@type": "Movies",
|
||||
"name": "{$Video.v_name}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:vurl v_id="$Video.v_id" v_py="$Video.v_name_en"/}',
|
||||
"description": "{$Video.v_description}",
|
||||
"actor": [
|
||||
{foreach $Video.v_actor as $strActorKey=>$strActor }
|
||||
{if $strActorKey < 5 }
|
||||
{ "@type": "Person", "name": "{$strActor}" },
|
||||
{/if}
|
||||
{/foreach}
|
||||
],
|
||||
"numberOfEpisodes": {$Video.v_play_url|count},
|
||||
"image": "{$Video.v_pic}",
|
||||
"aggregateRating": {
|
||||
"@type": "AggregateRating",
|
||||
"ratingValue": "{$Video.v_score}",
|
||||
}
|
||||
}
|
||||
},
|
||||
{/if}
|
||||
{/volist}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
</script>
|
||||
{/block}
|
||||
|
||||
|
||||
{block name="head-css"}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="head-js"}
|
||||
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
|
||||
<div class="f80005 container">
|
||||
<div class="e91676 layout-box top-weizhi hidden-xs">
|
||||
<label>当前位置:</label>
|
||||
<a href="/">{$DomainModel->d_name}</a><i>></i><a href="/sitemap.html">网站地图</a>
|
||||
</div>
|
||||
|
||||
{video:categorytype category_type="ONE" d_key="key" d_val="val"}
|
||||
<div class="dc6728 layout-box">
|
||||
<div class="d55ed1 box-title"><span class="b5ed19 title-lb"></span>
|
||||
<h2>
|
||||
<a class="b9bf12 font16" href='{site:vciurl parent_category="$val.v_category_en" /}'>{$val.v_category}</a>
|
||||
</h2>
|
||||
<a class="a52c60 box-more pull-right" href='{site:vciurl parent_category="$val.v_category_en" /}' title="{$val.v_category}">
|
||||
<span class="b04569 iconfont icon-weizhi"></span>
|
||||
更多
|
||||
<i>>
|
||||
</i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="fca2e8 sitemap">
|
||||
<ul class="be9825 clearfix">
|
||||
<li class="c8d228 title"><span class="b41d2c text-color">类型</span></li>
|
||||
{foreach $val.children as $intChildrenKey=>$arrChildrenCategory }
|
||||
<li>
|
||||
<a target="_blank"
|
||||
href='{site:vclurl parent_category="$Request.route.strParentCategory" category="$arrChildrenCategory.v_category_en" area="all" lang="all" year="all" order="all" page="1"}'
|
||||
title="{$arrChildrenCategory.v_category}">
|
||||
{$arrChildrenCategory.v_category}
|
||||
</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/video:categorytype}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
{/block}
|
||||
{block name="customize"}
|
||||
|
||||
{/block}
|
||||
Reference in New Issue
Block a user