fix 調整資料夾結構

This commit is contained in:
2026-05-14 09:01:08 +08:00
parent 9c4cf91a50
commit d1584bb6c0
26 changed files with 671 additions and 586 deletions
+3 -3
View File
@@ -6,11 +6,11 @@
## 1. 必做:把頁面掛進導覽 HTML
**`PORTAL_NAV_INNER_HTML`**(約第 123 行起)裡加入連結:
**`buildPortalNavInnerHTML`**`portal-nav.js`)裡維護連結:
- 依資訊架構放在對應的 **`<li>`** 底下;需要子選單時用 **`portal-submenu`**。
- `href` 使用與其他頁一致的**相對路徑**例如 `newpage.html``index.html#section`
- Logo 列不要動:`<a class="logo" href="index.html">…</a>`
- `href` 使用**站根相對路徑**(腳本會依當前頁深度加上前綴 `rp`):例如 `` `${rp}jiwon/jiwon.html` ``、`` `${rp}index.html#section` ``
- Logo 列`` `${rp}index.html` `` 與 `` `${rp}img/logov.svg` ``
新增或調整完後,所有帶 **`data-portal-nav`** 的 `<nav class="portal-nav">` 都會在載入腳本時被注入同一份 HTML。