Опис
WWI Blogcard is a Gutenberg block plugin that creates visually appealing blog cards from any URL. Simply paste a URL, and the plugin automatically fetches OGP (Open Graph Protocol) information to generate a rich preview card.
Features
- Easy to use: Just paste a URL and the blog card is automatically generated
- OGP support: Fetches title, description, and images from OGP meta tags
- Responsive design: Cards look great on any device
- Dark mode support: Automatic dark mode based on system preferences
- Caching: OGP data is cached for improved performance
- Security: SSRF protection blocks requests to private IP addresses
Usage
- Add a new „Blogcard“ block in the Gutenberg editor
- Paste the URL you want to create a card for
- Click „Fetch“ to retrieve OGP information
- The blog card is automatically generated
Source Code
The source code for this plugin, including uncompiled JavaScript and CSS files, is available on GitHub:
https://github.com/whywaita/wwi-blogcard
Building from Source
To build the plugin from source, you need Node.js and npm installed. Then run the following commands:
- Clone the repository:
git clone https://github.com/whywaita/wwi-blogcard.git - Navigate to the plugin directory:
cd wwi-blogcard - Install dependencies:
npm install - Build the plugin:
npm run build
The build process uses @wordpress/scripts to compile and minify the JavaScript and CSS files from the src/ directory to the build/ directory.
Блокови
Овај додатак пружа 1 блок.
- Blogcard Create a beautiful blog card from any URL using OGP information.
Постављање
- Upload the plugin files to the
/wp-content/plugins/wwi-blogcarddirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Use the „Blogcard“ block in the Gutenberg editor.
ЧПП
-
What is OGP?
-
OGP (Open Graph Protocol) is a protocol that allows web pages to become rich objects in a social graph. It’s commonly used by social media platforms to display link previews.
-
How long is OGP data cached?
-
OGP data is cached for 24 hours by default using WordPress Transients API.
-
Does this plugin support private/internal URLs?
-
No, for security reasons (SSRF protection), the plugin blocks requests to private IP addresses and localhost.
Прегледи
Нема рецензија за овај додатак.
Сарадници и градитељи
Преведите WWI Blogcard на свој језик.
Заинтересовани сте за градњу?
Прегледајте код, проверите SVN складиште или се пријавите на белешку градње преко RSS-а.
Белешка о изменама
See: https://github.com/whywaita/wwi-blogcard/blob/main/CHANGELOG.md