Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide what to do about mismatched dates #3972

Closed
3 tasks
Tracked by #3839
beechnut opened this issue Jul 9, 2024 · 1 comment
Closed
3 tasks
Tracked by #3839

Decide what to do about mismatched dates #3972

beechnut opened this issue Jul 9, 2024 · 1 comment
Assignees

Comments

@beechnut
Copy link
Contributor

beechnut commented Jul 9, 2024

Dates are handled differently between platforms.

Given this file and front matter:

content/posts/2022-01-21-what-have-you-learned-from-other-18F-designers.md

---
title: "We asked our coworkers: What have you learned from other 18F designers?"
date: 2022-01-22
# ...

In Jekyll the front matter date is ignored and the file slug date is used for both the URL and the published date:

-https://18f.gsa.gov/2022/01/21/what-have-you-learned-from-other-18F-designers/
Published on January 21, 2022 

In 11ty, the file slug date is used for published, but the front matter date is used for URLs.

+http://localhost:8080/2022/01/22/what-have-you-learned-from-other-18F-designers/
Published on January 21, 2022 

This inspires the question: why do we have the front matter date, if it's wrong, not getting used by Jekyll, and causing conflicts in 11ty?

Should we:

  • Delete all the front matter dates?
  • Reconfigure 11ty to choose the file slug date over the page date (not sure that's possible)?
  • Change all the divergent front-matter dates to be the same as the slug date?
  • Some or all of the above?

Acceptance criteria

@sam-couch-18f
Copy link
Member

@beechnut I am gonna go ahead and unassign myself here since I am rolling off of TLC after tomorrow.

backs away into bushes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants