[WordPress] 外掛分享: Widget Shortcodes for Github

首頁外掛目錄 › Widget Shortcodes for Github
WordPress 外掛 Widget Shortcodes for Github 的封面圖片
10+
安裝啟用
尚無評分
2388 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0.0 上架:2019-09-02

內容簡介

這款外掛可以讓你使用輕量級的小工具 shortcode 在部落格上顯示 GitHub 按鈕和 Gist。它包含以下 shortcode:

追蹤
觀察
加星標
派生
下載
問題

此外掛實現了ntkme的 'github-buttons'和 GitHub Gist 顯示的 shortcode。

使用方法

GitHub 追蹤按鈕:
在內容中添加 [Github_User_Button user='JBarnden' size='large' show_count='true'] shortcode,然後將 JBarnden 替換為要追蹤的 GitHub 用戶名。

GitHub 存儲庫按鈕:
在內容中添加 [Github_Repo_Button user='JBarnden' repo='wp-github-widgets' size='large' show_count='true'] shortcode,然後將 JBarnden 替換為要顯示其存儲庫按鈕的 GitHub 用戶名,將 MyRepo 替換為指定用戶的所需 repo。
您可以將 type 屬性設置為 watch、 star、 fork、 issue 或 download。

顯示 Gist:
添加 [Gist]gist_id[/Gist],gist_id 替換為所需 Gist 的 id。

更詳細的文檔可以在這裡找到。如果您發現此外掛有用,或有任何反饋,請給我評論。

功能請求和貢獻

請通過外掛的 GitHub 存儲庫的問題部分提交功能請求和貢獻。
如果您想改進外掛,請提交拉取請求,我們將不勝感激。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Widget Shortcodes for Github」→ 直接安裝(推薦)

原文外掛簡介

Lightweight widget shortcodes to display GitHub buttons and gists on your blog. Includes shortcode for embedding GitHub hosted gists and buttons for:

Follow
Watch
Star
Fork
Download
Issue

The plugin implements ntkme’s ‘github-buttons’ and GitHub’s gist display as shortcodes.
Usage
GitHub Follow Button:
Add the [Github_User_Button user='JBarnden' size='large' show_count='true'] shortcode in your content and replace JBarnden with the desired GitHub username.
GitHub Repo Buttons:
Add the [Github_Repo_Button user='JBarnden' repo='wp-github-widgets' size='large' show_count='true'] shortcode in your content, replacing JBarnden with the desired GitHub username and MyRepo with the desired repo belonging to the specified user.
You can set thetype attribtute to watch, star, fork, issue or download.
Display Gist:
Add the [Gist]gist_id[/Gist] where gist_id is replaced with the id of the desired Gist.
More detailed documentation can be found here. If you find the plugin useful or have any feedback I’d really appreciate your review.
Feature Requests and Contributions
Please submit feature requests and contributions via the issues section of the plugin’s GitHub Repository.
If you feel like improving the plugin, pull requests are both welcome and appreciated.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon