Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toml metadata #2803

Merged
merged 8 commits into from May 28, 2017
Merged

Toml metadata #2803

merged 8 commits into from May 28, 2017

Conversation

ralsina
Copy link
Member

@ralsina ralsina commented May 28, 2017

2nd branch in the #2801 story: naive support for TOML metadata

nikola/post.py Outdated
@@ -1023,6 +1031,28 @@ def _get_metadata_from_file(meta_data):
if not meta_data[0]:
meta_data = meta_data[1:]

# If 1st line is '---', then it's YAML metadata
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it should be more generic? Also, how will things like reST react to metadata in this format?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works just fine, because we are removing metadata before feeding it to docutils.

It does mean you can't use docutils rst2html with a post anymore.

@ralsina ralsina merged commit 1ea109b into master May 28, 2017
@ralsina ralsina deleted the toml-metadata branch May 28, 2017 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants