wintersmith

    0熱度

    1回答

    我有一個簡單的代碼,它使用代理向Google提交「GET」請求。 import httplib2 http = httplib2.Http(proxy_info = httplib2.ProxyInfo(proxy_type=3,proxy_host=myProxy, proxy_port=myPort)) resp, content = http.request("http://googl

    0熱度

    2回答

    我想服務一個/manfest.json文件 - 它有一些android的圖標信息。 { "name": "woot.io", "icons": [ { "src": "\/android-chrome-192x192.png", "sizes": "192x192", "type": "image\/png" }

    0熱度

    1回答

    我問過谷歌有如百萬次並且沒有任何具體的答案......我想在玉石模板中使用下面的代碼...然而,它會在第一行發出錯誤...請你能指點我正確的方向......在此先感謝! var fs = require('fs'); fs.unlink('/tmp/hello', function (err) { if (err) throw err; console.log('successfully d

    2熱度

    1回答

    在Wintersmith中,默認博客模板生成來自內容/文章/ <文章> /index.md的文章。這很好,因爲它允許像文件一樣包含圖像等相關文件。但實際上,大多數「博客文章」只是與模板相關的文本內容。不得不創建子目錄是一個小問題,如果在標籤編輯器中編輯多個條目,那麼討厭擁有名爲index.md的所有內容。 網站生成器將會吐出文章/ basic-post.html文件,但不會在生成的索引或存檔頁面中

    1熱度

    1回答

    我試圖循環訪問我的內容樹,並從各種降價文件中提取元數據。我看到了Paginator插件的例子,但我覺得我的用例比Paginator所需要的要簡單得多。 如果我的內容目錄結構是這樣的: projects/ project-name-1/ index.md project-name-2/ index.md project-name-3/ in

    3熱度

    2回答

    的wintersmith約API文檔會談: getPluginColor() Return vanity color used to identify the plugin when printing the content tree choices are: bold, italic, underline, inverse, yellow, cyan, white, magenta, green

    2熱度

    1回答

    是否有一種簡單的方法可以從Wintersmith的預覽和編譯輸出中刪除所有HTML空格,而無需編寫插件?

    3熱度

    2回答

    我正在使用Wintersmith沿着wintersmith-stylus和wintersmith-jade插件靜態網站。 我想補充一個特定的CSS文件中的一個幫助頁面。幫助頁面基於「佈局」模板。當我嘗試使用塊樣式表插入到HTML頭,我收到以下錯誤: Line ##: Unexpected identifier layout.jade doctype html html head

    2熱度

    1回答

    我一直在與Wintersmith建立一個網站,並且很喜歡它,但是我無法將自己的頭包裹在一些內置的機制中。我開始使用添加paginator.coffee插件的「博客」框架。 問題需要一些細節,所以往上頂,我想要做到: 任何文件(降價,HTML,JSON元數據)將有所回升無論是在/內容/文章/ <文件>或/內容/文章/ <子目錄>/<文件> 輸出文件位於/用品/ YYYY/MM/DD /冠軍塞/ /b

    0熱度

    2回答

    如何訪問喜歡使用FQL的朋友?我可以看到它的圖形API中: https://graph.facebook.com/1111111/likes ...但我似乎無法弄清楚如何做到這一點的FQL。