[WordPress] 外掛分享: MF2 Feeds

首頁外掛目錄 › MF2 Feeds
30+
安裝啟用
尚無評分
17 天前
最後更新
問題解決
WordPress 5.3+ PHP 7.4+ v3.2.0 上架:2018-08-13

內容簡介

MF2 Feeds 外掛為您的文章新增機器可讀的版本,讓其他網站和服務能以結構化數據的方式讀取您的內容,無論您使用哪種佈景主題,均可輕鬆整合。

【主要功能】
• 自動生成 Microformats2 JSON 和 JF2 兩種額外的供稿
• 支援 rel="alternate" 連結,方便工具發現供稿
• 無需設定,安裝後即刻啟用

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.2.0) 或搜尋安裝

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

原文外掛簡介

MF2 Feed adds a machine readable version of your posts, in the same way WordPress already offers RSS feeds. Other sites and services (readers, Webmention endpoints, IndieWeb tools) can read your content as structured data, no matter which theme you use.
Just install and activate the plugin. There are no settings.
After activation every URL of your site gets two additional feeds:

Microformats2 JSON (/feed/mf2/): the raw Microformats2 data, the same format a Microformats parser would produce.
JF2 (/feed/jf2/): a simplified version of the same data, easier to read and to work with. See the JF2 spec.

Examples

Your site: https://example.com/ → https://example.com/feed/mf2/ and https://example.com/feed/jf2/
A single post: https://example.com/2024/01/my-post/ → https://example.com/2024/01/my-post/feed/mf2/ and https://example.com/2024/01/my-post/feed/jf2/ (the comments of the post are included)

A live example: https://notiz.blog/2013/06/18/the-rise-of-the-indieweb/ and the matching mf2 and jf2 feeds.
The plugin also adds rel="alternate" links to the of every page, so tools can discover the feeds on their own. And it supports content negotiation: a client that requests a post with the Accept: application/mf2+json (or application/jf2+json) header gets the JSON directly instead of the HTML.
Why?
Microformats2 are a key building block of the IndieWeb. But it is very hard (if not impossible) to get them into all WordPress themes. There are a few community themes that support Microformats2, but you should be able to use the theme you like. After a lot of discussions and some different plugin approaches, this plugin provides an alternate (rel="alternate") representation instead of changing the HTML of your theme.
The URL design is inspired by p3k of @aaronpk.

延伸相關外掛

文章
Filter
Mastodon