[WordPress] 外掛分享: gitblock – GitHub Blocks

首頁 › 外掛目錄 › gitblock – GitHub Blocks
WordPress 外掛 gitblock – GitHub Blocks 的封面圖片
全新外掛
安裝啟用
—
尚無評分
7 天前
最後更新
—
問題解決
WordPress 6.6+ PHP 7.4+ v2.0.1 上架:2019-06-22

內容簡介

總覽

gitblock 是一個能夠增加 Github 區塊的 WordPress 外掛。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.1) 或搜尋安裝

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

原文外掛簡介

gitblock adds three blocks to the block editor:

GitHub User: a profile card with bio, company, location, website, join date, repository/follower/following counts, the contribution graph for the last year, pinned or top repositories, top languages and organizations.
GitHub Organization: an organization card with description, location, website, stats, pinned or top repositories, top languages and public members.
GitHub Repository: a repository card with description, topics, website, license, stars, forks, watchers, open issues, a language breakdown and the latest release.

Search for an account or repository right in the block, pick it from the suggestions and the card appears. Every section can be switched on or off in the block settings, and you choose whether to list pinned, most starred or recently updated repositories. Cards follow your theme’s colors and fonts, work in light and dark themes and adapt to narrow columns.
Pinned repositories and the contribution graph come from GitHub’s GraphQL API, which needs a token. Without one, the most starred repositories are listed instead and the graph is hidden.
GitHub responses are cached (one hour by default, see the gitblock_cache_ttl filter), so pages stay fast and well within GitHub’s rate limits. If GitHub is down or a rate limit is reached, cards keep showing the last data they had.
External service
This plugin fetches public data from the GitHub REST and GraphQL APIs (api.github.com) when a block is rendered and when you search for accounts or repositories in the editor. When a token is configured, opening Settings → General also checks it with GitHub’s rate limit endpoint (at most every ten minutes). The requested username, organization or repository name, your site’s address (in the User-Agent header) and, if you configure one, your GitHub token are sent to GitHub. Avatars are loaded from GitHub in visitors’ browsers. See GitHub’s Terms of Service and Privacy Statement.

延伸相關外掛

文章
Filter
Mastodon