Giter VIP home page Giter VIP logo

Comments (5)

cjerrington avatar cjerrington commented on September 24, 2024

Not all of my posts have a date: 2023-12-19 in the post.data.date. Locally I found the line and updated it to const postDate = post.data.date || post.date and it gets the date from the file name as my blog posts are 2023-12-19-blog-post-title.md.

@rknightuk Would you like a pull request to check this out? Once I added this I was able to get the full graph of my posts this year without going back and adding a date to the data.

This is with the change to look at post.data.date and post.date
Screenshot from 2023-12-19 21-44-22

This is with only post.data.date, and my initial attempt to add the date to the front matter.
Screenshot from 2023-12-19 21-45-37

from eleventy-plugin-post-graph.

rknightuk avatar rknightuk commented on September 24, 2024

@cjerrington That would be great, I did try this with a bunch of sites but didn't come across this.

from eleventy-plugin-post-graph.

rknightuk avatar rknightuk commented on September 24, 2024

@cjerrington I've added this while I was fixing something else, v1.0.2 checks for post.date if post.data.date doesn't exist.

from eleventy-plugin-post-graph.

cfjedimaster avatar cfjedimaster commented on September 24, 2024

Just to be clear though - my ask here was to document the requirement. I mean, it's mostly obvious, but as it wasn't called out, I wasn't sure. Can we re-open this please?

from eleventy-plugin-post-graph.

rknightuk avatar rknightuk commented on September 24, 2024

Yep absolutely, sorry I jumped to fixing @cjerrington suggestion and forgot about the original issue 😊

from eleventy-plugin-post-graph.

Related Issues (8)

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.