Skip to content

Commit

Permalink
blanks
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed Jun 5, 2017
1 parent 0cc8d6e commit 405c36a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nikola/utils.py
Expand Up @@ -1468,10 +1468,12 @@ def write_metadata(data, format='nikola'):
if yaml is None:
req_missing('pyyaml', 'use YAML metadata', optional=False)
return '\n'.join(('---', yaml.safe_dump(data, default_flow_style=False), '---', ''))

elif format == 'toml':
if toml is None:
req_missing('toml', 'use TOML metadata', optional=False)
return '\n'.join(('+++', toml.dumps(data), '+++', ''))

elif format == 'pelican_rest':
title = data.pop('title')
results = [
Expand Down

0 comments on commit 405c36a

Please sign in to comment.