根据seo 要求,怎加 head 标签

This commit is contained in:
make
2025-09-17 13:51:58 +08:00
parent 76f166ba1d
commit 728ffdab89
17 changed files with 329 additions and 68 deletions

View File

@@ -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">