GithubHelp home page GithubHelp logo

Comments (10)

mmistakes avatar mmistakes commented on April 28, 2024

Check your post and page YAML. It's probably in the wrong format in one of your posts or pages. Needs to be YYYY-MM-DD

Do you have a link to the problem repo?

from minimal-mistakes.

fliiiix avatar fliiiix commented on April 28, 2024

Do you have a link to the problem repo?

No sorry it's a private repo.

It's probably in the wrong format in one of your posts or pages.

I just double check that it's possible but I think not. I think if there is really a problem with a wrong filename date_to_xmlschema(page.date) should also fail.

from minimal-mistakes.

mmistakes avatar mmistakes commented on April 28, 2024

It's not the filename that's causing the problem, Jekyll would barf on that right away. In one of your post's or page's in the YAML front matter you can also set date: and modified: for the dates that are used in the "published on" line. If the format is wrong there the Liquid filter for converting the date into XML schema will fail.

Look through each of your posts and pages and make sure you're using the correct date format in the YAML front matter.

from minimal-mistakes.

fliiiix avatar fliiiix commented on April 28, 2024

I just check the date is not set by the YAML header in my case. So it parsed out of the filename:
https://github.com/jekyll/jekyll/blob/a0b30a9cc7200041c000dcbbc5266544fc680306/lib/jekyll/post.rb#L162

from minimal-mistakes.

mmistakes avatar mmistakes commented on April 28, 2024

Without a link to some code or a repo I really can't troubleshoot it further. In my experience the only time I've seen this error was from dates being set in the wrong format. Or maybe you have a Ruby gem that is out of date and needs updating.

from minimal-mistakes.

tgamblin avatar tgamblin commented on April 28, 2024

This happens to me when I get a new minimal mistakes theme and remove all the existing posts.

Edit: this was happening to me because I moved the existing posts in _posts out of the way and into a top-level subdirectory called "foo". jekyll looked in there and tried to parse the files but the post layout didn't get applied correctly because they weren't in the _posts directory. Moving foo outside of the jekyll site repo fixes this.

from minimal-mistakes.

fliiiix avatar fliiiix commented on April 28, 2024

@tgamblin I think I had the same problem as you. So I close this for now.

from minimal-mistakes.

dalufine avatar dalufine commented on April 28, 2024

I have the same problem.then i find that there is a .md file outof the dir _posts,delete it,it's work.(not't case my english)

from minimal-mistakes.

nibra avatar nibra commented on April 28, 2024

You can move the posts to an "example" directory without problems. You just have to add "example" to the exclude list in _config.yml.

from minimal-mistakes.

jianjinucdavis avatar jianjinucdavis commented on April 28, 2024

Thanks everyone! I finally caught the one left .md file which caused the problem!

from minimal-mistakes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.