summaryrefslogtreecommitdiff
path: root/gen_md.py
diff options
context:
space:
mode:
authorrusinthread <rusinthread@cock.li>2017-01-06 20:29:28 +0300
committerrusinthread <rusinthread@cock.li>2017-01-06 20:29:28 +0300
commit39f11d05bc164be556379392b27cf2bb1637e31f (patch)
tree9109f9f3013f89ed66d706730c0ee4d78fcae7e2 /gen_md.py
parentf500a1300aa9c051bc1e83323ea4ffc2b6885389 (diff)
update md
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)