Skip to content

Blog: UTF-8 encoding problems on Windows #6917

@avanbremen

Description

@avanbremen

Context

No response

Bug description

When adding the built-in blog plugin and writing your first post, spinning up the live preview server will abort with a BuildError (init.py line 73):

Error reading metadata of post 'blog\posts\hello-world.md' in 'docs':
Expected metadata to be defined but found nothing

Including YAML style meta-data in other (not blog) Markdown files will not result in a BuildError.

A minimal reproduction project is included.

Tested with mkdocs-material-9.4.13 and mkdocs-1.5.3.

Related links

Reproduction

material-mkdocs-blog.zip

Steps to reproduce

  1. Add built-in blog plugin
  2. Write your first post
  3. Spin up the live preview server

Browser

No response

Before submitting

Metadata

Metadata

Assignees

Labels

bugIssue reports a bugresolvedIssue is resolved, yet unreleased if open

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions