Skip to content

Commit f0dc0cb

Browse files
committed
update
1 parent ffc48ac commit f0dc0cb

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

notion2jekyll/jekyll_exporter.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ def post_header(block,md):
4848
tags = get_tags(block)
4949
for tag in tags:
5050
header += '- ' + tag +'\n'
51-
header += 'layout: article\n'
52-
header += 'aside:\n toc: true\n'
51+
header += 'layout: post\n'
5352
header += '---\n'
5453
md = header + md
5554
return md
@@ -60,8 +59,15 @@ def export_cli():
6059
token_v2, url = get_page()
6160
export(url,token_v2)
6261

62+
def export_in(page,client):
63+
file,dir = make_file(page)
64+
md = md_export(page,client,dir)
65+
md = remove_overlap(page,md)
66+
md = post_header(page,md)
67+
file.write(md)
68+
file.close
6369

64-
def export(url,token):
70+
def export_out(url,token):
6571
client = NotionClient(token_v2=token)
6672
page = client.get_block(url)
6773
file,dir = make_file(page)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
readme = f.read()
77
setup(
88
name='notion2jekyll',
9-
version='0.1.3',
9+
version='0.1.4',
1010
description='Export notion page to jekyll post',
1111
long_description=readme,
1212
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)