內容簡介
Markup to Featured Image 外掛可以在發表文章時自動建立一個特色圖片,讓您可以使用第三方客戶端(如 MarsEdit)發佈帶有特色圖片的文章。
若要在文章中加入特色圖片,請在文章內容中加入以下其中一種標記變體:
<img src="/path/to/image.jpg" data-featured-image="keep" />
<img src="/path/to/image.jpg" data-featured-image="strip" />
<!--featured-image:/path/to/image/.jpg-->
若使用 <img> 元素,則 data-featured-image 屬性的值指定該圖像在文章上顯示時的行為:可選擇在文章上顯示該圖像(keep),或在文章上不顯示該圖像(strip)。<img> 標籤中的屬性順序、是否包含其他屬性(例如寬度/高度、標題、替代文字等)並不影響外掛的使用。您可以根據需要增加或簡化該標記。
如果文章已經有特色圖片,則外掛不會進行任何操作(版本 1.0 不支援透過更新標記來更新縮略圖)。
外掛標籤
開發者團隊
原文外掛簡介
Markup to Featured Image will automatically generate a featured image when you publish a post, with the intent of allowing you to publish posts with featured images from third-party clients like MarsEdit.
To add a featured image to your post, include one of the following markup variants in your post’s content:


If you use an element, the values of the data-featured-image attribute specify whether the image should be displayed when the post is shown on your site (keep) or ignored when the post is displayed (strip). The order of attributes in your
tag (and whether you include other attributes, like width/height, title, alt, etc.) doesn’t matter. You can make it as complicated or simple as you like.
If the post already has a featured image, the plugin will do nothing (version 1.0 does not allow updating the thumbnail by updating the markup).
