h5 head 检查
This commit is contained in:
@@ -6,23 +6,46 @@
|
||||
<!-- 社交媒体标签 -->
|
||||
<meta property="og:title" content="{$strTitle??''}" />
|
||||
<meta property="og:description" content="{$strDescription??''}" />
|
||||
<meta property="og:url" content="{$DomainModel->d_domain}" />
|
||||
{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": "{$DomainModel->d_domain}",
|
||||
"@context": "https://{$DomainModel->d_domain}/shuku/all",
|
||||
"@type": "book",
|
||||
"headline": "{$strTitle??''}",
|
||||
"description": "{$strDescription??''}",
|
||||
"datePublished": "{:date('Y-m-d')}"
|
||||
}
|
||||
</script>
|
||||
{/block}
|
||||
</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="head-css"}
|
||||
|
||||
{if $strGender == 'all' && $strCategory == 'all' && $strStatus == 'all'}
|
||||
<link rel="canonical" href="{$DomainModel->d_domain}/shuku/all">
|
||||
{else}
|
||||
<link rel="canonical" href="/shuku/{$strGender}/{$strCategory}/{$strStatus}/page1">
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user