使用 grok 检测优化h5 的 html
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<!-- <script src="/public/jquery/jquery-3.7.1.min.js"></script> -->
|
||||
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$arrNovel['og_novel_book_name']??'未知小说'}" />
|
||||
<meta property="og:title" content="{$arrNovel['og_novel_book_name']??'未知小说'} {$arrChapter.name} - {$DomainModel->d_name}" />
|
||||
<meta property="og:description" content="{$strDescription??'暂无简介'}" />
|
||||
<meta property="og:url"
|
||||
content='https://{$DomainModel->d_domain}{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}' />
|
||||
@@ -38,42 +38,38 @@
|
||||
content="https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrChapter.n_id}/zhang-{$arrChapter.c_sort_num}">
|
||||
<!-- 可选:支持 Twitter Card -->
|
||||
<meta name="twitter:card" content="summary_large_image" />
|
||||
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name'] ?? '未知小说'}" />
|
||||
<meta name="twitter:title" content="{$arrNovel['og_novel_book_name']??'未知小说'} {$arrChapter.name} - {$DomainModel->d_name}" />
|
||||
<meta name="twitter:description" content="{$strDescription ?? '暂无简介'}" />
|
||||
<meta name="twitter:image" content="{$arrNovel.n_cover_path ?? ''}" />
|
||||
<!-- 结构化数据 -->
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://{$DomainModel->d_domain}",
|
||||
"@type": "book",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"datePublished": "{$arrNovel.og_novel_update_time ?? ''}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['og_novel_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$Novel.n_cover_path ?? ''}",
|
||||
"mainEntityOfPage": {
|
||||
"@type": "WebPage",
|
||||
"@id": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}"
|
||||
}
|
||||
"isPartOf": {
|
||||
"@context": "https://schema.org",
|
||||
"@type": "Book",
|
||||
"name": "《{$arrNovel['og_novel_book_name'] ?? '未知小说'}》",
|
||||
"url": '{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'
|
||||
}
|
||||
"name": "{$arrNovel['og_novel_book_name'] ?? '未知小说'}",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "{$arrNovel['og_novel_author'] ??'佚名'}"
|
||||
},
|
||||
"publisher": {
|
||||
"@type": "Organization",
|
||||
"name": "{$DomainModel->d_name}",
|
||||
"url": "https://{$DomainModel->d_domain}"
|
||||
},
|
||||
"image": "{$arrNovel.n_cover_path ?? ''}",
|
||||
"url": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
|
||||
"inLanguage": "zh-CN",
|
||||
"genre": "{$arrNovel.og_novel_category ??''}",
|
||||
"datePublished": "{$arrNovel['og_novel_update_time'] ?? time()}",
|
||||
"hasPart": {
|
||||
"@type": "CreativeWork",
|
||||
"name": "{$arrChapter.name ?? ''}",
|
||||
"url": "https://{$DomainModel->d_domain}/pc/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num ?? 1}",
|
||||
"description": "{$strDescription}"
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body class="skin-default">
|
||||
@@ -116,7 +112,6 @@
|
||||
</div>
|
||||
<article id="chapterContent" class="read-article" style="font-size: 1.125rem">
|
||||
<section class="read-section jsChapterWrapper" data-chapter-id="4b2d5aab58d71">
|
||||
<!-- <h3>01 天龙问世</h3> -->
|
||||
{$arrChapter.content|raw}
|
||||
|
||||
</section>
|
||||
@@ -142,12 +137,14 @@
|
||||
|
||||
</content>
|
||||
<div class="page-read-top">
|
||||
<h2 id="chapterTitle" class="read-book-name">
|
||||
<a href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
|
||||
{$arrNovel.og_novel_book_name}
|
||||
|
||||
<h1 id="chapterTitle" class="read-book-name">
|
||||
<a href='{site:nurl n_id="$arrNovel[n_id]" n_py="$arrNovel[og_novel_pin_yin]" /}'>
|
||||
{$arrNovel.og_novel_book_name}
|
||||
</a>
|
||||
</h2>
|
||||
<h1 id="chapterTitle" class="read-book-name">{$arrChapter.name}</h1>
|
||||
<a href="/xiaoshuo/{$arrNovel.og_novel_pin_yin}-{$arrNovel.n_id}/zhang-{$arrChapter.c_sort_num}">{$arrChapter.name}</a>
|
||||
|
||||
</h1>
|
||||
</div>
|
||||
<mark id="readPageMark" class="read-page-mark">你刚刚阅读到这里</mark>
|
||||
<p id="pageNum" class="read-page-num">1/1</p>
|
||||
|
||||
Reference in New Issue
Block a user