這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
playground:pg3 [2023/04/10 14:39] kenski [Pg3 include 置入既有頁面] |
playground:pg3 [2024/04/30 20:00] (目前版本) kenski [include plugin] |
||
---|---|---|---|
行 1: | 行 1: | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
- | ===== Pg03 include 置入既有頁面 ===== | + | ===== 3-1 Page:include 置入既有頁面 ===== |
展示本站使用到的[[https:// | 展示本站使用到的[[https:// | ||
<nspages playground -h1 -textPages=" | <nspages playground -h1 -textPages=" | ||
[< | [< | ||
- | ==== NS Pages ==== | + | |
- | [[https:// | + | |
- | < | + | |
- | </ | + | |
- | <nspages playground -h1 -textPages=" | + | |
==== include plugin ==== | ==== include plugin ==== | ||
[[https:// | [[https:// | ||
- | 以下Easts@Tainan係include自另一頁的的Section,語法: | + | * 嵌入自另頁的一個Section(或是page> |
- | < | + | * 另一種作法適合將" |
+ | * 例: 崁入相同的footer頁尾,優點是不重複撰寫、維持系統性((同資料庫的正規化)),修改來源footer便套用到所有引用的頁面 | ||
+ | * 另例: 首頁左方Festival廟會,也是自temple: | ||
+ | * 另例: [[gallery: | ||
+ | * 彙整上面兩種做法,意即資料可放在各區(月)後彙整,也可以資料放在一起(頁)由各區(月)來引用,如此可以在資料整理上有兩種彈性做法。 | ||
+ | 語法: | ||
+ | < | ||
</ | </ | ||
- | {{section> | + | {{section> |
- | ==== randomic | + | [< |
+ | ==== randominc | ||
[[https:// | [[https:// | ||
同樣的include加上random變成每日一文 | 同樣的include加上random變成每日一文 | ||
< | < | ||
範例: [[: | 範例: [[: | ||
+ | === randompage2 === | ||
+ | [[https:// | ||
+ | 產生如topnav中的" | ||
+ | < | ||
[< | [< |