差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

下次修改
前次修改
dokuwiki:template:material [2017/10/13 18:04]
ghsrobert 建立
dokuwiki:template:material [2017/11/13 02:24] (目前版本)
ghsrobert [material]
行 4: 行 4:
   * 支援 material 圖示庫   * 支援 material 圖示庫
   * 字型大小都理想   * 字型大小都理想
-  * 不過會有一條大大的 page ID 放在頁面主標上不好看 ← 研究了一下 main.php,如果有定 ''youarehere'' 則這邊就會顯示 pagetitle,不然就顯示 page ID;總之都太大了 XD 或是作者規劃把 pagetitle 放上面然後下面的 pagetext 的 h1 隱藏起來,但還找到成功的實做 FIXME +  * 預設 logo 用 /images/logo.svg,下面是有一塊留空的,不知道自訂 logo 是否也需計?放網站副標嗎?<todo>待問作者</todo> FIXME 
-  * 搜尋功能目前像不常 FIXME+  * /^20171028^/ 從開始用這個 template 並反映兩個 bug 至今原作者都沒有回應耶~是太忙?丟給社群了?人關心?那我可能要跳船了嗎 XD 
 +  * /^20171113^/ 作者有修一個 bug 了(真屬於 bug 的那個),所以或許還是可以繼續用了
  
-{{tag>待研究 bug}}+===== bug ===== 
 +  - 不過會有一條大大的 page ID 放在頁面主標上不好看 ← 研究了一下 main.php,如果有設定 ''youarehere'' 則這邊就會顯示 pagetitle,不然就是顯示 page ID;總之都太大了 XD 或是作者規劃把 pagetitle 放上面,然後下面的 pagetext 的 h1 要隱藏起來,但還沒找到成功的實做 FIXME 
 +    * /^20171017^/ 我目前先改 userall.css(注意這是 farmer 的!animal 似乎沒有自己的一套 user CSS,所以為了識別是專用於 material tpl,我加了 ''html.mdl-js''):<code css> 
 +html.mdl-js div.content-card__text h1:first-of-type {display: none;} 
 +</code>後來又顧及一些系統工具並無 ''.content-card%%__%%title'',還有找不到頁面時也要保留 h1 ∴進一步改成:<code css> 
 +div#dokuwiki__top.tpl_material:not(.notFound) div.content-card__title + div.content-card__text h1:first-of-type {display: none;} 
 +</code>((中間曾以為下面這樣可以,但其實還是不行:<code css> 
 +html.mdl-js :not(div.notFound) div.content-card__title + div.content-card__text h1:first-of-type {display: none;}</code>))(呼呼,學習 '':not'' selector 試好久 :))\\ → 分享:[[https://github.com/LeonStaufer/material-dokuwiki/issues/3|Hiding redundant h1 in div.content-card__text · Issue #3 · LeonStaufer/material-dokuwiki]] 
 +  - 搜尋功能目前好像不正常 FIXME 
 +    * 在 animal 裡或在主站使用,AJAX 即時列出名稱相符的頁面是可以運作,但按 ``⏎`` 以後都一樣是 404 → <div> 
 +> <fs large>Not Found</fs> 
 +>  
 +> The requested URL /dokuwiki/doku.php was not found on this server. 
 +</div> 
 +    * 反映 → [[https://github.com/LeonStaufer/material-dokuwiki/issues/2|Search box redirects to hard coded /dokuwiki/doku.php · Issue #2 · LeonStaufer/material-dokuwiki]] 
 +    * ↑/^20171113^/ 前兩天 GitHub 通知:Leon 修好此 bug 了,今天更新後試用 ✔ 
 + 
 +{{tag>待研究 待問 已反映 bug}}
  • 上一次變更: 2017/10/13 18:04
  • ghsrobert