根据seo 要求,怎加 head 标签
This commit is contained in:
@@ -3,20 +3,33 @@
|
||||
|
||||
<head>
|
||||
{block name="get-data"}{/block}
|
||||
<meta charset="UTF-8" />
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
{// 移动端适配 }
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="applicable-device" content="mobile">
|
||||
<meta http-equiv="Cache-Control" content="no-transform">
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||||
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
|
||||
{// 移动端 APP 样式,主要是移动端体验,对 SEO 没直接影响 }
|
||||
<meta name="format-detection" content="telephone=no,email=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<link rel="apple-touch-icon" href="/template/default/img/favicon.ico">
|
||||
{// PWA 支持(Chrome/安卓)和 SEO 不是强关联 }
|
||||
<meta name="theme-color" content="#000000">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta http-equiv="Cache-Control" content="no-transform, max-age=3600" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
|
||||
<meta name="applicable-device" content="mobile" />
|
||||
<!-- <link rel="manifest" href="/manifest.json"> -->
|
||||
{// 搜索引擎收录控制 }
|
||||
<meta name="robots" content="index, follow">
|
||||
|
||||
<title>{block name="title"}{/block}</title>
|
||||
<meta name="keywords" content='{block name="keywords"}{/block}'>
|
||||
<meta name="description" content='{block name="description"}{/block}'>
|
||||
<link rel="icon" href="/template/kuangyu/public/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="apple-touch-icon" href="/template/kuangyu/public/img/apple-touch-icon.png" />
|
||||
|
||||
<!-- <link rel="preload" href="/template/kuangyu/home/new_wap/css/style.css" as="style" onload="this.rel='stylesheet'" /> -->
|
||||
<link rel="preload" href="/template/kuangyu/home/new_wap/css/style.css" as="style" />
|
||||
<link rel="stylesheet" href='/template/kuangyu/home/new_wap/css/style.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}' type="text/css">
|
||||
<link rel="stylesheet" href="/public/layer/need/layer.css" />
|
||||
|
||||
|
||||
@@ -3,13 +3,31 @@
|
||||
|
||||
<head>
|
||||
{block name="get-data"}{/block}
|
||||
<meta charset="utf-8">
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
{// 移动端适配 }
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="applicable-device" content="pc">
|
||||
<meta http-equiv="Cache-Control" content="no-transform">
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||||
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
|
||||
{// 移动端 APP 样式,主要是移动端体验,对 SEO 没直接影响 }
|
||||
<meta name="format-detection" content="telephone=no,email=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<link rel="apple-touch-icon" href="/template/kuangyu/public/img/favicon.ico">
|
||||
{// PWA 支持(Chrome/安卓)和 SEO 不是强关联 }
|
||||
<meta name="theme-color" content="#000000">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<!-- <link rel="manifest" href="/manifest.json"> -->
|
||||
{// 搜索引擎收录控制 }
|
||||
<meta name="robots" content="index, follow">
|
||||
|
||||
<title>{block name="title"}{/block}</title>
|
||||
<meta name="keywords" content='{block name="keywords"}{/block}'>
|
||||
<meta name="description" content='{block name="description"}{/block}'>
|
||||
<link rel="icon" href="/template/kuangyu/public/img/favicon.ico" type="image/x-icon" />
|
||||
<link rel="preload" href='/template/kuangyu/home/bai_web/css/style.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}' type="text/css">
|
||||
<link rel="stylesheet" href='/template/kuangyu/home/bai_web/css/style.css?v={site:cfg code="STATIC_FILE_VERSION" encode="false"/}' type="text/css">
|
||||
<link rel="stylesheet" href="/public/layer/need/layer.css" type="text/css">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user