fix 調整資料夾結構
This commit is contained in:
@@ -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。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user