Skip to content
Permalink
Browse files
use friendly names in new_post -F
  • Loading branch information
ralsina committed Aug 15, 2015
1 parent 1920e86 commit fd926904ad76ff7bd4fc3f2858be1698823610ca
Showing with 7 additions and 3 deletions.
  1. +7 −3 nikola/plugins/command/new_post.py
@@ -466,18 +466,22 @@ def print_compilers(self):
False
])

for name in self.site.disabled_compilers:
for name, (_, _, pi) in self.site.disabled_compilers.items():
if pi.details.has_option('Nikola', 'Friendlyname'):
f_name = pi.details.get('Nikola', 'Friendlyname')
else:
f_name = name
if name in compilers_raw:
unused_compilers.append([
name,
name,
f_name,
compilers_raw[name],
False
])
else:
disabled_compilers.append([
name,
name,
f_name,
(),
False
])

0 comments on commit fd92690

Please sign in to comment.