Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

Commit 4dcba09

Browse files
committed
Merge pull request #63 from dsteinkopf/master
export source links to yaml header in markdown output
2 parents 48b40ac + 3a77347 commit 4dcba09

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

exitwp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def gi(q, unicode_wrap=True, empty=False):
152152

153153
export_item = {
154154
'title': gi('title'),
155+
'link': gi('link'),
155156
'author': gi('dc:creator'),
156157
'date': gi('wp:post_date_gmt'),
157158
'slug': gi('wp:post_name'),
@@ -289,6 +290,7 @@ def get_attachment_path(src, dir, dir_prefix='images'):
289290
out = None
290291
yaml_header = {
291292
'title': i['title'],
293+
'link': i['link'],
292294
'author': i['author'],
293295
'date': datetime.strptime(
294296
i['date'], '%Y-%m-%d %H:%M:%S').replace(tzinfo=UTC()),

0 commit comments

Comments
 (0)