biaslab / hugo-academic-group

An academic group website theme for Hugo.
MIT License
52 stars 18 forks source link

to_be_published parameter #59

Closed abpolym closed 11 months ago

abpolym commented 11 months ago

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.