[WordPress] 外掛分享: WordPress2Jekyll

首頁外掛目錄 › WordPress2Jekyll
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
3701 天前
最後更新
問題解決
WordPress 4.3+ v0.4 上架:2016-01-18

內容簡介

Jekyll 是一個很棒的工具,它能夠使用特定格式的文字文件建立一個完整的部落格網站。透過這個工具,你可以得到一個非常輕巧、快速的網站,攻擊者也無法透過腳本漏洞進行駭客攻擊。但這個工具的缺點是並不容易編輯,尤其是使用行動裝置時更加困難。

而這就是為什麼 WordPress 網站管理系統會派上用場的地方。WordPress 可以用來修改文章(包括標準文章和頁面),這些更改將自動匯出。如果需要,這同樣適用於分類和使用者。這就意味著可以使用行動裝置和 WordPress 應用程式來編輯內容。

WordPress2Jekyll 嘗試將這兩個系統融合在一起,以建立一個快速、安全,且不論使用任何裝置都容易管理的網站。

它可以做什麼?

匯出帶有所有 Jekyll 建立網頁所需的信息的文章和頁面,包括分類和標籤。
將頁面內容轉換為 Markdown 格式(假設它是 HTML)。
選擇使用 WordPress Permalinks 特定格式,而非設定的 Jekyll 方法。
允許 WordPress 通過 the_content filter 運行內容,以允許插件與主體內容進行交互。
根據文章更改情況自動建立單個頁面(或完整構建)。
可配置資產、數據和文章目錄。
匯出文章中的元數據。
匯出作者。
匯出分類。
按需進行大量匯出。

限制

此外掛假設所有 Jekyll 文章都存儲在 WordPress 中,而文章目錄中的任何文件都可以被刪除。做這件事是必要的以保持維護。
特色圖片將被匯出並鏈接到相應的位置。
此外掛暫時不支持受密碼保護的文章(我不確定它會不會支持)。
此外掛暫時不支持內嵌媒體。
支持分類(按順序匯出)
支持標籤(按順序匯出)
理想情況下,WordPress 安裝應隱藏遠離公眾視線。我正在開發一個單獨的插件,以輕鬆實現此目的。

心願清單

將完整構建添加到 Cron 作業。
匯出內嵌媒體。
修改 config.yml — 提供用戶選擇輸出選項。
CLI 使用。
更美觀的配置頁面。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4) 或搜尋安裝

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

原文外掛簡介

Jekyll is a great tool that will build a full blog site using text files written in a specific format. It gives you the bonus of having a very light and quick site that can’t be hacked through script vulnerabilities. The downside of this is that it’s not always easy to edit. It’s harder still when using a mobile device.
This is where WordPress comes in. WordPress can be used to modify the posts (both standard posts and pages) and these changes will automatically be exported. The same applies for taxonomies and users if desired. This means that it is possible to edit content using a mobile device and the WordPress app.
WordPress2Jekyll attempts to marry these two systems together in order to make a quick, secure website that can be easily managed from all devices.
What can it do?

Exports posts and pages with all the information Jekyll needs to build a page including categories and tags.
Converts page content to Markdown format (assumes it is HTML).
Has option to use the WordPress Permalinks patterns rather than using the configured Jekyll method.
Ability to allow WordPress to run content through the_content filter to allow plugins to interact with the body content.
Automatically builds individual pages (or full build) depending on what has changed in the post.
Configurable assets, data and posts directories.
Ability to export meta data in posts.
Export authors.
Export taxonomies.
On demand mass export.

Limitations

This plugin assumes that all Jekyll posts are stored in WordPress and any files in the posts directory can be deleted. This is a necessary for maintenance.
Featured images will be exported and linked accordingly.
Doesn’t support password protected posts at this time (I’m not sure if it ever will).
Doesn’t support inline media at this time.
Supports categories (exported in order)
Supports tags (exported in order)
Ideally the WordPress installation should be hidden away and not publicly accessible. I’m working on a separate plugin to do this easily.

Wishlist

Add full builds to a cron job.
Export inline media.
Modify config.yml – User selectable output options.
CLI usage.
A more aesthetically pleasing configuration page.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon