使用 grok 检测优化h5 的 html
This commit is contained in:
@@ -29,8 +29,8 @@
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": 'https://{$DomainModel->d_domain}/{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}',
|
||||
"@type": "book",
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "{$arrNovel['og_novel_book_name'] ?? '未知小说'}",
|
||||
"description": "{$arrNovel['og_description'] ??'暂无简介'}",
|
||||
"author": {
|
||||
@@ -43,8 +43,8 @@
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
|
||||
"image": "{$Novel.n_cover_path ?? ''}",
|
||||
"url": '{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}',
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": 'https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}',
|
||||
"genre": "{$arrNovel.og_novel_category ??''}",
|
||||
"inLanguage": "zh-CN",
|
||||
"bookFormat": "https://{$DomainModel->d_domain}/EBook",
|
||||
@@ -53,6 +53,7 @@
|
||||
"ratingValue": "4.5",
|
||||
"reviewCount": "100",
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
@@ -60,12 +61,14 @@
|
||||
|
||||
{block name="logo-html"}
|
||||
<h2 class="logo">
|
||||
<a href="/">{$DomainModel->d_name}-{$arrNovel['og_novel_book_name']}最新章节</a>
|
||||
<a href="/">{$DomainModel->d_name}-{$DomainModel->d_text_logo}</a>
|
||||
</h2>
|
||||
{/block}
|
||||
|
||||
{block name="main"}
|
||||
<div class="wrap">
|
||||
|
||||
|
||||
<nav class="breadcrumb" aria-label="breadcrumb">
|
||||
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
|
||||
<li class="breadcrumb-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
|
||||
@@ -87,6 +90,7 @@
|
||||
<meta itemprop="position" content="3" />
|
||||
</li>
|
||||
</ol>
|
||||
<h1 class="site-description ">{$arrNovel['og_novel_book_name']}最新章节 - {$arrNovel['og_novel_author']} - {$DomainModel->d_name}</h1>
|
||||
</nav>
|
||||
|
||||
<!--info-->
|
||||
@@ -95,13 +99,13 @@
|
||||
<div class="book-info">
|
||||
<dl class="base clearfix">
|
||||
<dt>
|
||||
<img src="/static/img/default.jpg" data-src="{$Novel.n_cover_path ?? ''}"
|
||||
alt="{$Novel->og_novel_book_name ?? ''}封面" class="lazy lazyload-img" />
|
||||
<img src="/static/img/default.jpg" data-src="{$arrNovel.n_cover_path ?? ''}"
|
||||
alt="{$arrNovel['og_novel_book_name'] ?? ''}小说封面 - {$arrNovel.og_novel_author}最新章节" class="lazy lazyload-img" />
|
||||
|
||||
<i class='{eq name="arrNovel.og_novel_status" value="连载中"}serial{else}finish {/eq}'>已完结</i>
|
||||
</dt>
|
||||
<dd>
|
||||
<h1>{$arrNovel['og_novel_book_name']}</h1>
|
||||
<h2>{$arrNovel['og_novel_book_name']}</h2>
|
||||
<p class="info">
|
||||
<span>分类:{$arrNovel.og_novel_category}</span>
|
||||
<span>作者:<a href="/search.html?keyword=兔子很淡定">{$arrNovel.og_novel_author}</a></span>
|
||||
@@ -163,7 +167,7 @@
|
||||
<!-- hot-book -->
|
||||
<div class="mod mod-attentions">
|
||||
<div class="mod-head">
|
||||
<h3>目录</h3>
|
||||
<h3>{$arrNovel.og_novel_book_name}最新章节</h3>
|
||||
</div>
|
||||
<div class="attentions">
|
||||
<ul class="clearfix">
|
||||
@@ -178,7 +182,7 @@
|
||||
</ul>
|
||||
<div class="chapters-more">
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/mulu/zheng"
|
||||
class="reading btn-bookshelf">更多章节</a>
|
||||
class="reading btn-bookshelf">{$arrNovel.og_novel_book_name}更多章节</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user