在</head>之前添加以下代码
- <!-- ===== JSON-LD 结构化数据 ===== -->
- <!-- 1. LocalBusiness(全站,含地址电话行业) -->
- <script type="application/ld+json">
- {
- "@context": "https://schema.org",
- "@type": "LocalBusiness",
- "name": "武汉彩亮光电科技有限公司",
- "url": "https://www.dzping.com",
- "logo": "{{$home_site_logo}}",
- "image": "{{$home_site_logo}}",
- "description": "LED屏伙伴线上查价系统,定位为LED显示屏行业的综合服务入口,旨在解决led大屏采购、选型及售后维修,提供LED显示屏价格查询、规格书下载、供应链资源对接等全方位一站式服务。",
- "telephone": "027-89992224",
- "address": {
- "@type": "PostalAddress",
- "streetAddress": "洪山区白沙洲大道华中城15栋4楼",
- "addressLocality": "武汉市",
- "addressRegion": "湖北省",
- "postalCode": "430071",
- "addressCountry": "CN"
- },
- "knowsAbout": "LED显示屏制造与批发销售",
- "contactPoint": {
- "@type": "ContactPoint",
- "telephone": "133 4343 9696",
- "contactType": "customer service",
- "availableLanguage": "Chinese"
- },
- "sameAs": ["https://www.dzping.com","https://www.leddxs.com","https://www.ledwang.com.cn"]
- }
- </script>
- <!-- 2. WebSite(全站) -->
- <script type="application/ld+json">
- {
- "@context": "https://schema.org",
- "@type": "WebSite",
- "name": "{{$home_site_name}}",
- "url": "{{$home_url}}"
- }
- </script>
- <!-- 3. BreadcrumbList(有面包屑数据时输出) -->
- {{if !empty($breadcrumb_data) && is_array($breadcrumb_data)}}
- <script type="application/ld+json">
- {
- "@context": "https://schema.org",
- "@type": "BreadcrumbList",
- "itemListElement": [
- {
- "@type": "ListItem",
- "position": 1,
- "name": "首页",
- "item": "{{$home_url}}"
- }
- {{foreach $breadcrumb_data as $k=>$v}}
- ,{
- "@type": "ListItem",
- "position": {{:$k+2}},
- "name": "{{$v.name}}",
- "item": "{{:isset($v['url']) && !empty($v['url']) ? $v['url'] : $my_view_url}}"
- }
- {{/foreach}}
- ]
- }
- </script>
- {{/if}}
- <!-- 4. Product(仅在商品详情页输出) -->
- {{if !empty($goods) && is_array($goods)}}
- <script type="application/ld+json">
- {
- "@context": "https://schema.org",
- "@type": "Product",
- "name": "{{$goods.title}}",
- "description": "{{$home_seo_site_description}}",
- {{if !empty($goods.model)}}
- "sku": "{{$goods.model}}",
- {{/if}}
- "image": "{{$goods.images}}",
- "offers": {
- "@type": "Offer",
- "url": "{{$my_view_url}}",
- "priceCurrency": "CNY",
- "price": "0",
- "availability": "https://schema.org/InStock"
- }
- }
- </script>
- {{/if}}
- <!-- 5. Article(仅在文章详情页输出) -->
- {{if !empty($article) && is_array($article) && isset($article.title)}}
- <script type="application/ld+json">
- {
- "@context": "https://schema.org",
- "@type": "Article",
- "headline": "{{$article.title}}",
- "description": "{{if !empty($article.simple_desc)}}{{$article.simple_desc}}{{elseif !empty($article.seo_desc)}}{{$article.seo_desc}}{{else /}}{{$home_seo_site_description}}{{/if}}",
- {{if isset($article.add_time) && !empty($article.add_time)}}
- "datePublished": "{{$article.add_time}}",
- {{/if}}
- "author": {
- "@type": "Organization",
- "name": "{{$home_seo_site_title}}"
- },
- "publisher": {
- "@type": "Organization",
- "name": "{{$home_seo_site_title}}",
- "logo": {
- "@type": "ImageObject",
- "url": "{{$home_site_logo}}"
- }
- }
- }
- </script>
- {{/if}}
复制代码
|
|