Convert to tags from "*" to "tags/*".
[blog.git] / posts / ikiwiki-nanoblogger-import.py
index d41e7e2d098f1b7f1b46a1e97a254b5ac0d14564..88eaf9746605f7e6150a1d17638c35b170de9a53 100644 (file)
@@ -24,7 +24,7 @@
     Usage: run --help as an argument with this script.
 
     Notes:
-    I added some extra bits to include the [[!tag  foo]] stuff in the post,
+    I added some extra bits to include the [[!tag tags/foo]] stuff in the post,
     as it wasn't before, at all. I'll diff the versions out so you can see
     the mess I made :).
 
@@ -100,7 +100,7 @@ def format_commit(post_dict, name, email, subdir, branch):
         lines.append('')
     for tag in post_dict['tags']:
         lines.append(
-            '[[!tag  %s]]' % (tag.replace(' ', '-').replace('/', '-').lower()))
+            '[[!tag tags/%s]]' % (tag.replace(' ', '-').replace('/', '-').lower()))
     lines.append('')
     data = '\n'.join(lines).encode('utf-8', 'html_replace')
     ret = [