|
|
@@ -11,6 +11,7 @@ This will make blog repo to be a blog inplace.
|
|
|
import os
|
|
|
import string
|
|
|
import subprocess
|
|
|
+from posixpath import join as urljoin
|
|
|
|
|
|
POSTS_ROOT = 'content'
|
|
|
EXTS = ['.md', '.rst']
|
|
|
@@ -83,6 +84,8 @@ with open(README, 'wt', encoding='utf-8') as h:
|
|
|
h.write('## {}\n\n'.format(k))
|
|
|
v = sorted(v, key=lambda metas: metas.get('date'), reverse=True)
|
|
|
for metas in v:
|
|
|
- h.write('- [{}]({})\n'.format(metas.get('title'), os.path.join(remote, POSTS_ROOT, metas.get('file'))))
|
|
|
+ h.write('- [{}]({})\n'.format(metas.get('title'), urljoin(remote, 'src/master', POSTS_ROOT, metas.get('file'))))
|
|
|
+
|
|
|
h.write('\n')
|
|
|
+
|
|
|
print('done.')
|