From 9f8edef028c9ea2009fee2a2849c3f1003855a88 Mon Sep 17 00:00:00 2001
From: James Feng Cao
Date: Sun, 17 Mar 2024 12:23:44 +0800
Subject: [PATCH] deno.js to deploy static site
---
js/deno.js | 9 +++++++++
sitemap.xml | 2 +-
zh/_posts/index.xml | 2 +-
zh/index.xml | 2 +-
zh/redirect/index.html | 10 +++++-----
zh/sitemap.xml | 12 ++++++------
zh/tags/index.xml | 2 +-
zh/tags/国外网址/index.xml | 2 +-
zh/tags/重定向/index.xml | 2 +-
9 files changed, 26 insertions(+), 17 deletions(-)
create mode 100644 js/deno.js
diff --git a/js/deno.js b/js/deno.js
new file mode 100644
index 0000000..5e0f54f
--- /dev/null
+++ b/js/deno.js
@@ -0,0 +1,9 @@
+import { serveFile } from "https://deno.land/std/http/file_server.ts";
+async function handler(req){
+ let url = req.url;
+ let iSlash = url.indexOf('/',11);
+ let path = url.substring(iSlash+1);
+ return await serveFile(req, `${Deno.cwd()}/`+path);
+};
+
+Deno.serve(handler);
diff --git a/sitemap.xml b/sitemap.xml
index 3b3bcb4..6784020 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -11,7 +11,7 @@
/zh/sitemap.xml
- 2024-03-17T10:35:03+08:00
+ 2024-03-17T11:46:48+08:00
diff --git a/zh/_posts/index.xml b/zh/_posts/index.xml
index f27788f..e173d07 100644
--- a/zh/_posts/index.xml
+++ b/zh/_posts/index.xml
@@ -6,7 +6,7 @@
Recent content in _Posts on 超微浏览器: 威、快、高效、极致优化
Hugo -- gohugo.io
zh
- Sun, 17 Mar 2024 10:35:03 +0800
+ Sun, 17 Mar 2024 11:46:48 +0800
-
电视直播
diff --git a/zh/index.xml b/zh/index.xml
index e3544c2..a87e0d1 100644
--- a/zh/index.xml
+++ b/zh/index.xml
@@ -6,7 +6,7 @@
Recent content on 超微浏览器: 威、快、高效、极致优化
Hugo -- gohugo.io
zh
- Sun, 17 Mar 2024 10:35:03 +0800
+ Sun, 17 Mar 2024 11:46:48 +0800
-
电视直播
diff --git a/zh/redirect/index.html b/zh/redirect/index.html
index 82b228a..b344d96 100644
--- a/zh/redirect/index.html
+++ b/zh/redirect/index.html
@@ -53,10 +53,10 @@
全局重定向
长按设置,选中"自定义资源重定向"。此时如果全局重定向url为有效网址,则所有网络访问被内部重定向至url: "[全局重定向url]+[原始url]"。
-Example: "https://loud-moth-21.deno.dev/"
-使用仓库"https://github.com/torappinfo/fetch"入口"deno.js"部署Deno
-创建免费魔法重定向,说明类似但代码不同
-cloudflare workers 全局重定向代码
+
Example: "https://loud-moth-21.deno.dev/"
+使用仓库"https://github.com/torappinfo/fetch"入口"deno.js"部署Deno
+创建免费魔法重定向,说明类似但代码不同
+cloudflare workers 全局重定向代码
vercel 全局重定向
重定向文件 "default.redirect" (仅在无有效全局重定向url时生效)
点击添加google recaptcha国内镜像
@@ -106,7 +106,7 @@ item.gome.com.cn::item.gomevvv.com.cn
Last Modified: 17 March 2024
-add deno url
+add global redirection example url