h5 head 检查

This commit is contained in:
make
2025-04-06 18:10:04 +08:00
parent 7b1dc9533c
commit 3a2cdb8bf4
36 changed files with 548 additions and 294 deletions

View File

@@ -6,18 +6,37 @@
<!-- 社交媒体标签 -->
<meta property="og:title" content="{$strTitle??''}" />
<meta property="og:description" content="{$strDescription??''}" />
<meta property="og:url" content="{Request->DomainModel->d_domain}" />
<meta property="og:type" content="article" />
{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'}
<meta property="og:url" content="https://{$DomainModel->d_domain}/shuku/all" />
{else}
<meta property="og:url" content="https://{$DomainModel->d_domain}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage}" />
{/if}
<meta property="og:type" content="book" />
<!-- 结构化数据 -->
{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "NewsArticle",
"headline": "{$strTitle??''}",
"description": "{$strDescription??''}",
"datePublished": "2025-04-05"
}
{
"@context": "https://{$DomainModel->d_domain}/shuku/all",
"@type": "book",
"headline": "{$strTitle??''}",
"description": "{$strDescription??''}",
"datePublished": "{:date('Y-m-d')}"
}
</script>
{else}
<script type="application/ld+json">
{
"@context": "https://{$DomainModel->d_domain}/shuku/{$strGender}/{$strCategory}/{$strStatus}/page{$intPage}",
"@type": "book",
"headline": "{$strTitle??''}",
"description": "{$strDescription??''}",
"datePublished": "{:date('Y-m-d')}"
}
</script>
{/if}
{/block}
{block name="head-js"}{/block}
{block name="logo-html"}