[WordPress] 外掛分享: HTML5 Boilerplate

首頁外掛目錄 › HTML5 Boilerplate
50+
安裝啟用
★★★★
4.3/5 分(3 則評價)
4048 天前
最後更新
問題解決
WordPress 3.1+ v5.0.1 上架:2011-04-21

內容簡介

站在巨人肩膀上(也就是 Paul Irish 和 Divya Manian,和他們所帶領的偉大同仁們,共同打造並推廣 HTML5 Boilerplate),我為大家呈現我第一個 WordPress 插件,HTML5 Boilerplate。這是從我的 Boilerplate – Starkers WP Theme 衍生出來的插件,可以添加到任何主題中,不論是新的、現有的、已經自訂的等等!

最棘手的部分是處理 Boilerplate CSS 和 JS 檔案。為了避免升級時你所做的改動被覆蓋,我們在 /css 和 /js 目錄下建立了“起始檔”,我建議你建立起始檔的副本(從新檔名中刪除“-starter”),這樣你就可以安全地進行編輯。如此一來,如果以後更新了起始檔,你只需要從那些檔案中複製/貼上到你的檔案中,一切就都沒問題了。

另一種方法是在你的頁面中加入其他連結,但這會增加 HTTP 要求次數,影響效能...這就看你自己了,如果你有更好的實現方法請告訴我。

更多關於這個插件的資訊可以在下面網站找到:
http://aarontgrogg.com/html5boilerplate/

我還基於 Elliot Jay Stocks 的 Starkers Theme 打造了一個 Boilerplate 主題,可以在下面網站找到:
http://aarontgrogg.com/boilerplate/

如果你有任何問題、建議或想法,請告訴我。

Atg

http://aarontgrogg.com/

[email protected]

外掛標籤

開發者團隊

⬇ 下載最新版 (v5.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「HTML5 Boilerplate」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Standing on the foreheads of giants (namely Paul Irish and Divya Manian and
the good folks that have helped them create and continue the growth of HTML5 Boilerplate,
I present to you my first WordPress plug-in, HTML5 Boilerplate. As a spin-off of my
Boilerplate – Starkers WP Theme, this plug-in can be added to any theme, new, pre-existing,
already customized, whatevs!
The clumsiest part of this is dealing with the Boilerplate CSS and JS files.
To avoid any changes you make from being overwritten during upgrades,
“starter” files have been created in the /css and /js directories. I recommend
creating copies of the starter files (removing ‘-starter’ from the new filenames)
that you can safely edit. That way, if the starter files are updated later, you can
simply copy/paste from them into your files again, and all is fine.
Another route would be to add additional links in your pages, but this does increase
your HTTP Requests, which hurts performance…
Your call, let me know if you can think of a better implementation.
More about this plug-in can be found at:
http://aarontgrogg.com/html5boilerplate/
I also built a Boilerplate theme based on Elliot Jay Stocks’ Starkers Theme that can be found at:
http://aarontgrogg.com/boilerplate/
Please let me know if you have any questions/suggestions/thoughts,
Atg
http://aarontgrogg.com/
[email protected]

延伸相關外掛

文章
Filter
Mastodon