根据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,16 +3,34 @@
<head>
{block name="get-data"}{/block}
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta name="robots" content="index, follow">
<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,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/videolaoniu/images/favicon.png">
{// 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="shortcut icon" href="/template/videolaoniu/images/favicon.png" type="image/x-icon">
<link rel="preload" type="text/css" href="/template/videolaoniu/css/global.css">
<link rel="preload" type="text/css" href="/template/videolaoniu/css/style.css">
<link rel="stylesheet" type="text/css" href="/template/videolaoniu/css/swiper-bundle.min.css">
<link rel="stylesheet" type="text/css" href="/template/videolaoniu/css/global.css">
<link rel="stylesheet" type="text/css" href="/template/videolaoniu/css/style.css">