[WordPress] 外掛分享: Shortnotes

前言介紹

  • 這款 WordPress 外掛「Shortnotes」是 2021-03-10 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2023-11-01,距離現在已有 548 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

jeremyfelt |

外掛標籤

notes | short | replies | indieweb |

內容簡介

Shortnotes 外掛新增一個自訂文章類型「筆記(Notes)」,用於發布類似於 Twitter、Instagram 等社交網路上的簡短內容。

無標題

筆記文章類型不支援傳統的標題。

筆記標題通常不需要在主題版面中顯示。使用者可能需要調整主題的外觀和感覺。詳細說明請見下方的「主題自訂」部分。

筆記標題會根據內容自動生成,並用作筆記的文件標題。這可供搜尋引擎閱讀並在瀏覽器標籤中顯示。

限制區塊

筆記文章類型僅使用基本內容區塊,如段落、圖片、相片庫、影片和嵌入。使用一組定義明確的相對簡單的區塊可使筆記保持簡潔。

Webmention 支援

筆記文章類型包含對Webmention和Semantic-Linkbacks外掛的支援。

筆記內容中的 URL 可能會被處理為可傳送Webmention。

區塊編輯器中的面板可用於添加回覆 URL 和名稱。提交後,它們將用於提供語義化的Webmention 回覆標記。

回覆標記模板

回覆規範最佳時機是將在主要內容元素之外定義u-in-reply-to元素。

Shortnotes 外掛提供一個樣板標記,可用於在您的主題中輸出回覆標記標記。


if ( function_exists( 'ShortNotes\PostType\Note\reply_to_markup' ) ) {
\ShortNotes\PostType\Note\reply_to_markup();
}
?>



如果未使用此樣板標記,則 Shortnotes 外掛將自動將回覆標記標記附加到the_content中。

主題自訂

使用此外掛不需要自訂您的主題,但您可能需要思考如何顯示標題及是否需要完整的 Webmention 支援。

如果您想要自訂主題,我開發此外掛時在 Twenty Twenty One 的子主題上進行了調整,可作為範例參考。

這些調整包括:(a)刪除筆記文章類型的標題顯示,和(b)將回應標記標記放在主要內容元素之外。

原文外掛簡介

Shortnotes adds a custom post type, Notes, used to publish short pieces of content on your website, similar to social networks like Mastodon, Twitter, or Instagram.
No titles
The Notes post type does not support traditional titles.
Note titles are not generally meant to be displayed as part of the theme layout. You will likely need to adjust the look and feel of your theme accordingly. See the Theme Customization section below for more details.
A title is generated automatically from note content and is used as the note’s document title. This is readable by search engines and displayed in browser tabs.
Limited blocks
The Notes post type supports basic content blocks like paragraph, list, quote, image, preformatted text, gallery, video, and embed. Using a defined list of relatively simple blocks helps to keep notes simple.
Webmention support
The Notes post type includes support for the Webmention and Semantic-Linkbacks plugins.
URLs in note content are processed as possible webmentions.
A panel in the block editor allows for the addition of a reply to URL and name. When entered, they are used to provide markup for a semantic webmention reply.
Reply to template tag
The reply specification works best when the u-in-reply-to element is outside of the main content element, defined by e-content.
A template tag is provided as part of the Shortnotes plugin that can be used to output reply to markup in your theme.


If this template tag is not used, then the Shortnotes plugin will automatically prepend the reply to markup to the_content.
Theme Customization
No customization of your theme is required to use this plugin, though you will likely want to think through how titles are displayed and if you want full support for webmentions.
If you do find yourself wanting to customize, I have made adjustments to my site’s theme, a child theme of Twenty Twenty One, while developing this plugin, that can be used as an example.
Those adjustments (a) remove the display of a title for the note post type and (b) output reply to markup outside of the main content element.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Shortnotes」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.1 | 1.0.2 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.2.0 | 1.3.0 | 1.3.1 | 1.4.0 | 1.5.0 | 1.6.0 | 1.6.1 | 1.6.2 | trunk |

延伸相關外掛(你可能也想知道)

  • WebSub (FKA. PubSubHubbub) 》這個外掛是讓使用者即時知道你的部落格有更新的簡單方式。它採用了廣泛被使用於 Google Alerts 和許多其他服務的 PubSubHubbub/WebSub 技術。訂閱請求經由中...。
  • Webmention 》Webmention是一種通知,通知一個URL鏈接到另一個URL。發送Webmention不僅限於博客文章,還可以用於其他類型的內容和回應。, 例如,回應可以是對事件的回覆,...。
  • IndieWeb 》WordPress 外掛:IndieWeb Plugin for WordPress, , IndieWeb Plugin for WordPress 可以透過擴展使用者資料來幫助你建立個人的 IndieWeb 身份,提供 rel-me ...。
  • Syndication Links 》此外掛支援在 WordPress 的文章、頁面、和評論中加入 rel-syndication/u-syndication 連結,指示聯合發佈的複本在哪裡,並以文字或圖示連結的形式呈現。您可...。
  • IndieAuth 》這個外掛可以將 WordPress 變成 IndieAuth 終端。這可用於作為 WordPress 和其 REST API 的驗證機制,以及其他網站的身份機制。它使用個人資料頁面上的 URL ...。
  • Micropub 》Micropub 是一個開放的 API 標準,可用於使用第三方客戶端在您的網站上創建文章。Web 應用程序和本機應用程序(例如 iPhone、Android)可以使用 Micropub 向...。
  • Microformats 2 》這僅是一個非常基本的實現,因為並非每個元素都可以透過動作或過濾器存取。最好使用完全支持Microformats 2的佈景主題。。
  • Keyring Social Importers 》在執行這個外掛之前,請閱讀每個進口商的相關說明。, 這個社交進口商套件提供了從其他網站匯入你已經創建的內容,重新在你自己的 WordPress 站點上發佈的功能...。
  • Post Kinds 》「Post Kinds」外掛可透過實踐 IndieWeb 所開發的標準實現與其他網站互動及回應的支援。外掛在經典編輯器中實現了「貼文種類」(kinds of posts),但不適用於 ...。
  • IndieBlocks 》IndieBlocks目前註冊一個名為「Context」的塊,可以輸入URL和「類型」,並輸出正確的微格式HTML。更多區塊正在開發中。, 與微格式兼容的佈景主題結合使用,可...。
  • MF2 Feeds 》提供每個 WordPress URL 的 Microformats2 JSON「Feed」,並協助允許其他網站即使該主題不支援 Microformats2,也能夠取得預解析的Microformats-JSON。, Micr...。
  • IndieWeb Press This 》這個外掛是基於 @snarfed 的想法和程式碼所開發:, 在 WordPress 4.9 中,Press This 被從 WordPress 中移除,所以這個外掛需要有支援 Bookmarklet 的 Press ...。
  • Aperture 》此外掛會透過托管的 Aperture 服務,在您的 WordPress 網站上增加一個 Microsub 終端。透過此終端,您可以登入像是 Monocle 和 Indigenous 這樣的社交閱讀器...。
  • Yarns Microsub Server 》Yarns Microsub Server幫助您訂閱來自全球各地的訊息串。只需輸入網站,Yarns就會幫助您找到並訂閱幾種不同格式的串流(如Microformats、RSS、Atom、JSONFeed...。
  • Keyring Reactions Importer 》此外掛backfeed可讓您獲取在您的所有社交網絡帳戶中有複製的文章的所有反應。, 必備的外掛程式, , Keyring, 註:使用 500px 時,您需要一個尚未合併入 Keyrin...。

文章
Filter
Mastodon