Skip to content

Commit

Permalink
Don't add tags in WordPress import.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Apr 28, 2018
1 parent f69c5df commit f99a898
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions nikola/plugins/command/import_wordpress.py
Expand Up @@ -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'
Expand All @@ -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[:]):
Expand Down

0 comments on commit f99a898

Please sign in to comment.