Comments (5)
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
This is with only post.data.date
, and my initial attempt to add the date
to the front matter.
from eleventy-plugin-post-graph.
@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.
@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.
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.
Yep absolutely, sorry I jumped to fixing @cjerrington suggestion and forgot about the original issue 😊
from eleventy-plugin-post-graph.
Related Issues (8)
- Rendering issue with post graph on my blog HOT 4
- Post graph is inaccessible HOT 1
- Add new `limit` argument to limit to X years HOT 1
- Strange "false" line between CSS and HTML HOT 2
- noLabels option generates 'false' line in CSS when not set to true HOT 1
- Strange Behaviour: Extra HTML Tags
- Graph is not visible when trying to print website
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eleventy-plugin-post-graph.