From 6d014a2c093eea1d09c915565bb376c5681589d7 Mon Sep 17 00:00:00 2001 From: Cytrogen Date: Wed, 4 Mar 2026 19:52:49 -0500 Subject: [PATCH] =?UTF-8?q?=E6=89=81=E5=B9=B3=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=BB=93=E6=9E=84=EF=BC=9A=E7=A7=BB=E9=99=A4=20pages/=E3=80=81?= =?UTF-8?q?css/=E3=80=81caddy/=20=E5=AD=90=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 所有 HTML 和 CSS 文件移至根目录,更新所有内部路径引用。 URL 从 cytrogen.icu/pages/about 变为 cytrogen.icu/about。 --- pages/about.html => about.html | 2 +- pages/announcement.html => announcement.html | 2 +- caddy/phase4-live.example.Caddyfile | 50 -------------------- pages/canon.html => canon.html | 2 +- pages/castle.html => castle.html | 2 +- pages/colophon.html => colophon.html | 2 +- pages/contact.html => contact.html | 2 +- pages/death.html => death.html | 2 +- pages/friends.html => friends.html | 2 +- pages/hosted.html => hosted.html | 2 +- pages/hotel.html => hotel.html | 2 +- index.html | 22 ++++----- pages/interior.html => interior.html | 2 +- pages/map.html => map.html | 2 +- pages/neighbors.html => neighbors.html | 2 +- css/realm.css => realm.css | 0 pages/station.html => station.html | 2 +- pages/uses.html => uses.html | 2 +- 18 files changed, 26 insertions(+), 76 deletions(-) rename pages/about.html => about.html (99%) rename pages/announcement.html => announcement.html (97%) delete mode 100644 caddy/phase4-live.example.Caddyfile rename pages/canon.html => canon.html (99%) rename pages/castle.html => castle.html (99%) rename pages/colophon.html => colophon.html (99%) rename pages/contact.html => contact.html (99%) rename pages/death.html => death.html (97%) rename pages/friends.html => friends.html (94%) rename pages/hosted.html => hosted.html (99%) rename pages/hotel.html => hotel.html (99%) rename pages/interior.html => interior.html (99%) rename pages/map.html => map.html (99%) rename pages/neighbors.html => neighbors.html (99%) rename css/realm.css => realm.css (100%) rename pages/station.html => station.html (97%) rename pages/uses.html => uses.html (99%) diff --git a/pages/about.html b/about.html similarity index 99% rename from pages/about.html rename to about.html index 5374a6d3ae780bc538c9569ddd826e8c6e44c818..0a7a49b7563bd7043385bb25762be9ad3770561d 100644 --- a/pages/about.html +++ b/about.html @@ -6,7 +6,7 @@ 卧室 — Realm - + diff --git a/pages/announcement.html b/announcement.html similarity index 97% rename from pages/announcement.html rename to announcement.html index 698b9d4753b4511ec6426d9bc68df449c61d6ccd..422ef4b47d28cadc7915a960a21f6cf5b80804a3 100644 --- a/pages/announcement.html +++ b/announcement.html @@ -6,7 +6,7 @@ 领地公告 — Realm - + diff --git a/caddy/phase4-live.example.Caddyfile b/caddy/phase4-live.example.Caddyfile deleted file mode 100644 index a63453171391761ccd76f6f75badc71bfd4e2f75..0000000000000000000000000000000000000000 --- a/caddy/phase4-live.example.Caddyfile +++ /dev/null @@ -1,50 +0,0 @@ -# Phase 4: Realm live — cytrogen.icu serves /var/www/cytrogen.icu -# -# This is a reference copy of the realm-relevant Caddy blocks deployed -# to /etc/caddy/Caddyfile. The production Caddyfile also includes blocks -# for sourcehut, beszel, freshrss, stalwart, etc. -# -# Status: DEPLOYED 2026-03-04 - -# Realm portal -cytrogen.icu, www.cytrogen.icu { - root * /var/www/cytrogen.icu - file_server - encode gzip - - @static path *.css *.js *.jpg *.jpeg *.png *.gif *.ico *.svg *.webp *.woff *.woff2 *.ttf *.eot - header @static Cache-Control "public, max-age=2592000, immutable" - - @html path *.html / - header @html Cache-Control "public, max-age=3600, must-revalidate" - - try_files {path} {path}/ {path}.html -} - -# Blog (unchanged from Phase 1) -blog.cytrogen.icu { - root * /var/www/blog.cytrogen.icu - file_server - encode gzip - - @static path *.css *.js *.jpg *.jpeg *.png *.gif *.ico *.svg *.webp *.woff *.woff2 *.ttf *.eot - header @static Cache-Control "public, max-age=2592000, immutable" - - @html path *.html - header @html Cache-Control "public, max-age=3600, must-revalidate" - - handle_errors { - @4xx expression `{err.status_code} >= 400 && {err.status_code} < 500` - handle @4xx { - rewrite * /{err.status_code}.html - file_server - } - @5xx expression `{err.status_code} >= 500` - handle @5xx { - rewrite * /{err.status_code}.html - file_server - } - } - - try_files {path} {path}/ {path}.html -} diff --git a/pages/canon.html b/canon.html similarity index 99% rename from pages/canon.html rename to canon.html index ea968914d635275c85adfef58b293427ea1c5928..1605b5bf771dd8c71fd1b41542df99ee28d2d3e5 100644 --- a/pages/canon.html +++ b/canon.html @@ -6,7 +6,7 @@ 典籍室 — Realm - + diff --git a/pages/castle.html b/castle.html similarity index 99% rename from pages/castle.html rename to castle.html index 8486203eb4eb5de7d54ca9bf52279eeedf612965..041ae1c583549c51253e8f6072e42cf20083ebf0 100644 --- a/pages/castle.html +++ b/castle.html @@ -6,7 +6,7 @@ Realm — cytrogen.icu - + diff --git a/pages/colophon.html b/colophon.html similarity index 99% rename from pages/colophon.html rename to colophon.html index b66994474ffa173027ee2809a936c387b515736c..01887c18e5e710ee79bc3c0fa9784025fb8f6340 100644 --- a/pages/colophon.html +++ b/colophon.html @@ -6,7 +6,7 @@ 工坊 — Realm - + diff --git a/pages/contact.html b/contact.html similarity index 99% rename from pages/contact.html rename to contact.html index 6ee4680780584aa0a8837e6c348bde4bc93c8068..8b03b068ba19b45fe9ec412651f2601855eb9048 100644 --- a/pages/contact.html +++ b/contact.html @@ -6,7 +6,7 @@ Contact — Realm - + diff --git a/pages/death.html b/death.html similarity index 97% rename from pages/death.html rename to death.html index 558fc0a0316b154c36f4d8d0a4974c686de227a5..71dca7b65b50574e83f2b243997bc7cd73dc4f3b 100644 --- a/pages/death.html +++ b/death.html @@ -6,7 +6,7 @@ 遗言 — Realm - + diff --git a/pages/friends.html b/friends.html similarity index 94% rename from pages/friends.html rename to friends.html index 386a27fcfeb345aa80760aec32fa6a0a1e627438..9a29259b3a4b75fc15b5425c3108160044bce141 100644 --- a/pages/friends.html +++ b/friends.html @@ -6,7 +6,7 @@ 友邻 — Realm - + diff --git a/pages/hosted.html b/hosted.html similarity index 99% rename from pages/hosted.html rename to hosted.html index 595bf28ce73c8c9f36726f788ca6b52240bc93d8..9ff2fd6d32b135d20a37cdfcbfd932c3cfae294a 100644 --- a/pages/hosted.html +++ b/hosted.html @@ -6,7 +6,7 @@ 属地 — Realm - + diff --git a/pages/hotel.html b/hotel.html similarity index 99% rename from pages/hotel.html rename to hotel.html index 19286f3ed54ac862bcad4b8664775b60d7861e64..ca7a6e8ae0b9973852be656a86d8de13cd9218a1 100644 --- a/pages/hotel.html +++ b/hotel.html @@ -6,7 +6,7 @@ 胶囊旅馆 — Realm - + diff --git a/index.html b/index.html index 82defc9fe3b8efe675664b8700b3418f47b6eb7e..c53416daa5ac904a08c36af66b482274f3e37d6e 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Realm — cytrogen.icu - + @@ -108,7 +108,7 @@ - + 邻邦 — Neighboring lands @@ -155,7 +155,7 @@ "/> - + 大门 — Enter the castle interior + 联络处 — Contact @@ -193,7 +193,7 @@ - + 领地公告 — Announcement @@ -209,7 +209,7 @@ - + 遗言 — Death @@ -242,11 +242,11 @@ diff --git a/pages/interior.html b/interior.html similarity index 99% rename from pages/interior.html rename to interior.html index dd63d55a2689640ace2b541b6cd9ac5084870b56..001a4e1d19bb0adc60094f0db93e7f91fa786891 100644 --- a/pages/interior.html +++ b/interior.html @@ -6,7 +6,7 @@ 城堡内部 — Realm - + diff --git a/pages/map.html b/map.html similarity index 99% rename from pages/map.html rename to map.html index 63f9a33f4d88d044c394d7af18dfa3c22cd17e48..d1c82488b4213b56c28442f0a3466eedf1f57be2 100644 --- a/pages/map.html +++ b/map.html @@ -6,7 +6,7 @@ 领地总览 — Realm - + diff --git a/pages/neighbors.html b/neighbors.html similarity index 99% rename from pages/neighbors.html rename to neighbors.html index cfb763990baf62243123a35ffdd9538929608b6d..64b320394685df7612cd6faeedb9d791502380c2 100644 --- a/pages/neighbors.html +++ b/neighbors.html @@ -6,7 +6,7 @@ 邻邦 — Realm - + diff --git a/css/realm.css b/realm.css similarity index 100% rename from css/realm.css rename to realm.css diff --git a/pages/station.html b/station.html similarity index 97% rename from pages/station.html rename to station.html index e0816fd7a65d4e9b325287f734cec2137e666792..d882265fe566ee29bddac7b7b7a71b1b5b1216d4 100644 --- a/pages/station.html +++ b/station.html @@ -6,7 +6,7 @@ 驿站 — Realm - + diff --git a/pages/uses.html b/uses.html similarity index 99% rename from pages/uses.html rename to uses.html index 5310c0000bb5f3a58e02b0e6244b533425aabcd7..0c5a519aa3eb1f4e773f5db096945108793986c3 100644 --- a/pages/uses.html +++ b/uses.html @@ -6,7 +6,7 @@ 兵器库 — Realm - +