瀏覽代碼

feat: use noindex to block search engine

Cat 2 年之前
父節點
當前提交
08336f7949

+ 0 - 2
public/robots.txt

@@ -1,2 +0,0 @@
-User-agent: *
-Disallow: /

+ 2 - 1
resources/views/tabler/404.tpl

@@ -1,7 +1,8 @@
 <!DOCTYPE HTML>
-<html lang="en">
+<html lang="zh">
 <head>
     <meta charset="UTF-8">
+    <meta name="robots" content="noindex">
     <title>Not Found - {$config['appName']}</title>
     <link rel="shortcut icon" href="/favicon.ico"/>
     <link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>

+ 2 - 1
resources/views/tabler/405.tpl

@@ -1,7 +1,8 @@
 <!DOCTYPE HTML>
-<html lang="en">
+<html lang="zh">
 <head>
     <meta charset="UTF-8">
+    <meta name="robots" content="noindex">
     <title>Method Not Allowed - {$config['appName']}</title>
     <link rel="shortcut icon" href="/favicon.ico"/>
     <link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>

+ 2 - 1
resources/views/tabler/500.tpl

@@ -1,7 +1,8 @@
 <!DOCTYPE HTML>
-<html lang="en">
+<html lang="zh">
 <head>
     <meta charset="UTF-8">
+    <meta name="robots" content="noindex">
     <title>Internal Server Error - {$config['appName']}</title>
     <link rel="shortcut icon" href="/favicon.ico"/>
     <link rel="bookmark" href="/favicon.ico" type="image/x-icon"/>

+ 2 - 1
resources/views/tabler/index.tpl

@@ -1,7 +1,8 @@
 <!DOCTYPE HTML>
-<html lang="zh-cn">
+<html lang="zh">
 <head>
     <meta charset="UTF-8">
+    <meta name="robots" content="noindex">
     <title>{$config['appName']}</title>
     {if $user->isLogin}
     <script>

+ 2 - 1
resources/views/tabler/staff.tpl

@@ -1,7 +1,8 @@
 <!DOCTYPE html>
-<html lang="zh-cn">
+<html lang="zh">
 <head>
     <meta charset="UTF-8">
+    <meta name="robots" content="noindex">
     <title>{$config['appName']}</title>
     <link rel="shortcut icon" href="/favicon.ico"/>
     <link rel="bookmark" href="/favicon.ico"/>

+ 1 - 0
resources/views/tabler/tabler_header.tpl

@@ -3,6 +3,7 @@
 
 <head>
     <meta charset="utf-8" />
+    <meta name="robots" content="noindex">
     <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
     <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
     <meta http-equiv="X-UA-Compatible" content="ie=edge" />

+ 2 - 1
resources/views/tabler/tos.tpl

@@ -1,7 +1,8 @@
 <!DOCTYPE HTML>
-<html lang="zh-cn">
+<html lang="zh">
 <head>
     <meta charset="UTF-8">
+    <meta name="robots" content="noindex">
     <title>Terms of Service - {$config['appName']}</title>
     <link rel="shortcut icon" href="/favicon.ico"/>
     <link rel="bookmark" href="/favicon.ico"/>