Skip to content
Permalink
Browse files
Don't add tags in WordPress import.
  • Loading branch information
felixfontein committed Apr 28, 2018
1 parent f69c5df commit f99a89816221d9929da1ee0045d8b7e84c903893
Showing 1 changed file with 0 additions and 6 deletions.
@@ -921,14 +921,10 @@ def import_postpage_item(self, item, wordpress_namespace, out_folder=None, attac
LOGGER.warn('Trashed post "{0}" will not be imported.'.format(title))
return False
elif status == 'private':
if self.site.config['USE_TAG_METADATA']:
tags.append('private')
is_draft = False
is_private = True
post_status = 'private'
elif status != 'publish':
if self.site.config['USE_TAG_METADATA']:
tags.append('draft')
is_draft = True
is_private = False
post_status = 'draft'
@@ -949,8 +945,6 @@ def import_postpage_item(self, item, wordpress_namespace, out_folder=None, attac
tags.append(text)

if '$latex' in content:
if self.site.config['USE_TAG_METADATA']:
tags.append('mathjax')
has_math = True

for i, cat in enumerate(categories[:]):

0 comments on commit f99a898

Please sign in to comment.