Open abpolym opened 11 months ago
The easiest solution would be:
publication_date
always to be used for the actual date of the publicationto_be_published
publication_date
to rank the publications chronologicallyEdit: We also have to add/update all publication_date
in all publications, once we use publication_date
Fixing this issue should fix https://github.com/biaslab/biaslab-hugo/issues/160
The publication date for publications in the past is determined from the
date
parameter. Thedate
parameter is used to rank when the article appears on the website. If thedate
parameter is set to the future, then the article will be hidden untildate
is older than the current date.For publications that will appear in the future, the
to_be_published
is set to true, and thepublication_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
andpublication_date
both serve the same purpose in the end, so we might want to get rid ofpublication_date
in a future version of this repo, and automatically determine whether or not a publication is to be published in the future.