Ez a bővítmény nem lett tesztelve a WordPress legutóbbi 3 fő kiadásával. Lehetséges, hogy már nincs karbantartva, frissítve és a használata gondot jelenthet a frissebb WordPress verziókkal.

Gistr

Leírás

Gistr allows you to easily embed Gists from GitHub in your WordPress site. Simply enter the Gist ID in the Gistr Post Block and viola! Gistr was developed especially for the Block (Gutenberg) Editor experience in WordPress 5.0+ and will not work if you have disabled it.

Gistr allows you to easily:

*Embed Gist by pasting the Gist ID into the options box (that’s it!)
*Hide/show line numbers
*Highlight rows
*Show all or select line numbers
*Hide Gist footer
*Cache Gists

Gistr is a WordPress Plugin implementation of Gist Embed by Blair Vanderhoof.

Képernyőmentések

  • Example of an embedded Gist
  • Gistr Block in the block editor. Once selected the input area and options will appear
  • View of the Gistr Block when selected. You will paste the Gist ID in the input box as shown.
  • Available options when configuring Gistr

Telepítés

  1. Upload the plugin files to the /wp-content/plugins/gist directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress
  3. In the post or page editor, add a new block. You will find Gistr in the ‘Embed’ block section
  4. Paste the Gist ID into the input area of the block.
  5. You can configure the Gist settings in the options area on the right hand side.

GYIK

Where do I find the Gist ID?

The Gist ID is the numbers and letters after the username in the Gist URL. For example, if this is the Gist URL: https://gist.github.com/myusername/774c98e6e6f139091aedf6c18109c335
Then the Gist ID is all the characters after the /myusername/

Vélemények

2019.07.14.
Well done - it works! So far the best plug in and I tried lots.. to embed gists. Please do support it in the future.
2019.05.22.
I love this, thank you! I was looking for something like this, that didn't come bundled with a bunch of other blocks I didn't need. I love the ability to hide the bottom bar, and adjust line numbers / highlights. I used this together with some custom styling to get a nice dark-theme for my snippet embeds.
2 (az összes) vélemény olvasása

Közreműködők és fejlesztők

“Gistr” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:

Közreműködők

“Gistr” fordítása a saját nyelvünkre.

Érdekeltek vagyunk a fejlesztésben?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Változási napló

1.0

  • First stable release