Skip to content
This repository was archived by the owner on May 2, 2021. It is now read-only.

Commit ee32a83

Browse files
committed
Add post image to related post data
1 parent f80aa49 commit ee32a83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery.ghostrelated.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @License MIT
66
*/
77
;(function($) {
8-
8+
99
function RelatedPosts(element, options) {
1010
var defaults = {
1111
feed: '/rss',
@@ -121,6 +121,7 @@
121121
title: item.find('title').text(),
122122
url: item.find('link').text(),
123123
content: item.find('description').text(),
124+
image: item.find('media\\:content, content').attr('url'),
124125
tags: $.map(item.find('category'), function(elem) {
125126
return $(elem).text();
126127
})

0 commit comments

Comments
 (0)