This commit is contained in:
make
2025-04-20 21:50:58 +08:00
parent 34206fe268
commit 3216cffb5e
15 changed files with 352 additions and 233 deletions

View File

@@ -1,28 +1,42 @@
{extend name="basePc" /}
{block name="title"}{$strTitle??''}{/block}
{block name="keywords"}{$strKeywords??''}{/block}
{block name="description"}{$strDescription??''}{/block}
{block name="title"}{site:replace code="NOVEL@GETNOVELCHANNEL@TITLE"}{/block}
{block name="keywords"}{site:replace code="NOVEL@GETNOVELCHANNEL@KEYWORDS"}{/block}
{block name="description"}{site:replace code="NOVEL@GETNOVELCHANNEL@DESCRIPTION"}{/block}
{block name="strPageCode"}
<?php $strPageCode = $Request->param('strChannel'); ?>
{/block}
{block name="head"}
<?php
$strPageCode = $Request->param('strChannel');
?>
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$strTitle??''}" />
<meta property="og:description" content="{$strDescription??''}" />
<meta property="og:url" content="https://{$DomainModel->d_domain}{$strPageCode == 'boys' ? $strNanUrlTemp : $strNvUrlTemp }" />
<meta property="og:title" content='{site:replace code="NOVEL@GETNOVELCHANNEL@TITLE"}' />
<meta property="og:description" content='{site:replace code="NOVEL@GETNOVELCHANNEL@DESCRIPTION"}' />
<meta property="og:url"
content="https://{$DomainModel->d_domain}{$strPageCode == 'man' ? $strNanUrlTemp : $strNvUrlTemp }" />
<meta property="og:type" content="book" />
<!-- 结构化数据 -->
<script type="application/ld+json">
{
"@context": "https://{$DomainModel->d_domain}{$strPageCode == 'boys' ? $strNanUrlTemp : $strNvUrlTemp }",
@context": "https://schema.org”,
"@type": "book",
"headline": "{$strTitle??''}",
"description": "{$strDescription??''}",
"headline": '{site:replace code="NOVEL@GETNOVELCHANNEL@TITLE"}',
"description": '{site:replace code="NOVEL@GETNOVELCHANNEL@DESCRIPTION"}',
"url": "https://{$DomainModel->d_domain}/{$strPageCode == 'man' ? $strNanUrlTemp : $strNvUrlTemp }",
"datePublished": "{:date('Y-m-d')}"
}
</script>
{/block}
{block name="head-css"}
{eq name="strPageCode" value="boys"}
{eq name="strPageCode" value="man"}
<link rel="canonical" href="https://{$DomainModel->d_domain}/{$strNanUrlTemp}">
{else}
<link rel="canonical" href="https://{$DomainModel->d_domain}/{$strNvUrlTemp}">
@@ -38,9 +52,10 @@
</a>
</h2>
{/block}
{block name="main"}
{site:grm page_code="pc_index" diff="0" num="50" g_key="arrGrm" /}
<div class="content">
@@ -53,7 +68,7 @@
<meta itemprop="position" content="1" />
</li>
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
{eq name="strPageCode" value="boys"}
{eq name="strPageCode" value="man"}
<a href="{$strPcPath}{$strNanUrlTemp}" itemprop="item">
<span itemprop="name">男生</span>
</a>
@@ -75,15 +90,13 @@
<span class="log_line"></span>
</div>
<ul class="f2_list" mod="hot_tj">
{volist name="arrRecommendSerializationNovel" id="Novel" key="key"}
{novel:list count="12" sort_type="tuijian" n_status="lianzai" n_sex="$strPageCode" d_key="key" d_val="Novel" p_val="page_data" cache_life="86400"}
{include file="pc/public/endNovelList" start="0"/}
{/volist}
{/novel:list}
</ul>
</div>
<div class="adv">
{volist name="arrAdBanner" id="Ad" key="key"}
{include file="pc/public/adBanner" /}
{/volist}
</div>
@@ -95,16 +108,15 @@
<h2>完本推荐</h2>
</div>
<ul class="rec_R">
{volist name="arrRecommendEndNovel" id="Novel" key="key"}
{novel:list count="8" sort_type="tuijian" n_status="wanjie" n_sex="$strPageCode" d_key="key" d_val="Novel" p_val="page_data" cache_life="86400"}
{include file="pc/public/endNovelList" start="13"/}
{/volist}
{/novel:list}
</ul>
</div>
<div class="adv">
{volist name="arrAdBanner" id="Ad" key="key"}
{include file="pc/public/adBanner" /}
{/volist}
</div>
<div class="f4 area">
@@ -125,9 +137,9 @@
<li class="sj">更新时间</li>
</ul>
</li>
{volist name="arrNewsUpdateNovel" id="Novel" key="key"}
{novel:list count="30" sort_type="update" n_sex="$strPageCode" d_key="key" d_val="Novel" p_val="page_data" cache_life="86400"}
{include file="pc/public/indexNewsUpdateList" start="21"/}
{/volist}
{/novel:list}
</ol>
</div>
</div>