Skip to content

Commit 2ddda33

Browse files
committed
Merge pull request #189 from stephenyeargin/feature/add-excerpt-to-wp-dot-com
Add post excerpt to WordPress.com importer
2 parents c8235d2 + dca1b81 commit 2ddda33

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/jekyll-import/importers/wordpressdotcom.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ def self.process(options)
117117

118118
begin
119119
content = Hpricot(item.at('content:encoded').inner_text)
120+
excerpt = Hpricot(item.at('excerpt:encoded').inner_text)
121+
122+
if excerpt
123+
header['excerpt'] = excerpt
124+
end
120125

121126
if fetch
122127
download_images(title, content, assets_folder)

0 commit comments

Comments
 (0)