Skip to content
Permalink
Browse files

blanks

  • Loading branch information
ralsina committed Jun 5, 2017
1 parent 0cc8d6e commit 405c36a0f1eea61a7d0c019282b0cc1b21ae7346
Showing with 2 additions and 0 deletions.
  1. +2 −0 nikola/utils.py
@@ -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 = [

0 comments on commit 405c36a

Please sign in to comment.