小说页面重复率优化 降低重复率

This commit is contained in:
make
2025-07-25 00:31:30 +08:00
parent 55528a0994
commit c8b0032cde
10 changed files with 2065 additions and 420 deletions

View File

@@ -66,6 +66,10 @@
<meta name="twitter:description"
content='{site:replace code="NOVEL@GETNOVELINFO@DESCRIPTION" diff="$Request.route.intNovelId"}' />
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
<link rel="canonical"
href='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel.n_id" n_py="$arrNovel.n_name_pinyin" /}'>
<!-- 结构化数据 -->
<script type="application/ld+json">
{
@@ -120,7 +124,6 @@
{/block}
{block name="head-js"}
{/block}
@@ -361,16 +364,16 @@
</div>
{else}
<div class="work-list">
{novel:list count="16" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key"
{novel:list count="32" n_category="$arrNovel.n_category_pinyin" sort_type="update" d_key="d_key"
d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="600"}
{include file="public/novel-list-flex" start="16"/}
{/novel:list}
</div>
{if !empty($Request.route.intForgeId) && !empty($arrGrm[99])}
{$arrGrm[99]|raw}
{/if}
{$arrGrm[99]|raw}
{/if}
<div class="work-list">
{novel:ranklist count="8" sort_type="daily" d_key="d_key"
{novel:ranklist count="32" sort_type="daily" d_key="d_key"
d_val="Novel" diff_key="$Request.route.intForgeId" cache_life="600"}
{include file="public/novel-list-flex" start="16"/}
{/novel:ranklist}
@@ -384,8 +387,9 @@
</div>
</div>
{if !empty($Request.route.intForgeId) && !empty($arrGrm[98])}
{$arrGrm[98]|raw}
{/if}
{$arrGrm[98]|raw}
{/if}
<script>
const strNovelId = `{$arrNovel.n_id}`;
const arrNovel = {