summaryrefslogtreecommitdiff
path: root/gen_md.py
diff options
context:
space:
mode:
Diffstat (limited to 'gen_md.py')
-rwxr-xr-xgen_md.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gen_md.py b/gen_md.py
index 5d9e0ee..cf4e239 100755
--- a/gen_md.py
+++ b/gen_md.py
@@ -52,7 +52,7 @@ def main():
pic_buf = []
for p in pic:
- pic_buf.append('![](./img_previews/%s =300x)' % p)
+ pic_buf.append('[./img/%s](![](./img_previews/%s))' % (p, p))
post_buf += '**Пикрилейтед:**\n\n%s\n\n' % ''.join(pic_buf)
if 'link' in post:
@@ -76,7 +76,7 @@ def main():
buf.append(post_buf)
- md = "\n\n---------\n\n".join(buf)
+ md = "\n\n\n\n---------\n\n\n\n".join(buf)
with open(os.path.join(CWD, 'data.md'), 'w') as f:
f.write(md)