Skip to content

Build is failing when draft is true and tags are present #2

Closed
@maikdiepenbroek

Description

@maikdiepenbroek

First of all let me start of with saying what an amazing starter template this is. I've set it up with docker and deployed it on my own server. It was a breeze, so good job!

Just now i wanted to upload a new version of my site and the build started failing. Next to that the compose file does not generate the correct post file.

Steps to reproduce

  • node ./scripts/compose.js "My fancy title" md
  • Generated my-fancy title.md (notice the first dash is only present
    After editing the post title to be kebab case again, writing the actual post and having the draft set to true i wanted to build so i ran npm run build
  • That resulted in TypeError: Cannot read property 'date' of undefined

Whenever i switched the draft to false and ran npm run build again, all things were fine again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions