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

publication_date, date, to_be_published - too many cooks? #60

Open
abpolym opened this issue Aug 25, 2023 · 2 comments
Open

publication_date, date, to_be_published - too many cooks? #60

abpolym opened this issue Aug 25, 2023 · 2 comments

Comments

@abpolym
Copy link
Collaborator

abpolym commented Aug 25, 2023

The publication date for publications in the past is determined from the date parameter.
The date parameter is used to rank when the article appears on the website. If the date parameter is set to the future, then the article will be hidden until date is older than the current date.

For publications that will appear in the future, the to_be_published is set to true, and the publication_date parameter is used to display the publication date.

Both layouts/publication/single.html and layouts/partials/publication_li_detailed.html will now display the publication date using the same parameter.

Right now, date and publication_date both serve the same purpose in the end, so we might want to get rid of publication_date in a future version of this repo, and automatically determine whether or not a publication is to be published in the future.

@abpolym
Copy link
Collaborator Author

abpolym commented Aug 25, 2023

The easiest solution would be:

  • use publication_date always to be used for the actual date of the publication
  • automatically detect when a publication is to be published, and get rid of to_be_published
  • optionally use publication_date to rank the publications chronologically

Edit: We also have to add/update all publication_date in all publications, once we use publication_date

@abpolym
Copy link
Collaborator Author

abpolym commented Aug 25, 2023

Fixing this issue should fix biaslab/biaslab-hugo#160

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

1 participant