greenelab / lab-website-template

An easy-to-use, flexible website template for labs.
https://greenelab.github.io/lab-website-template/
BSD 3-Clause "New" or "Revised" License
365 stars 315 forks source link

Manual override of `date` doesn't work in citations #245

Closed michaelpginn closed 8 months ago

michaelpginn commented 8 months ago

Checks

Link to your website repo

https://github.com/lecs-lab/lecs-lab.github.io

Version of Lab Website Template you are using

1.2.0

Description

I am trying to manually override the date field in my sources, as in

- id: doi:10.18653/v1/2023.genbench-1.7
  date: 2023-12-01

However, this does not seem to work, as the citations.yaml file contains

- id: doi:10.18653/v1/2023.genbench-1.7
  title: Robust Generalization Strategies for Morpheme Glossing in an Endangered Language
    Documentation Context
  authors:
  - Michael Ginn
  - Alexis Palmer
  publisher: Proceedings of the 1st GenBench Workshop on (Benchmarking) Generalisation
    in NLP
  date: ''
  link: https://doi.org/gtmsc3
  plugin: sources.py
  file: sources.yaml

Is there something else I have to do to get this override to work? The dates that are automatically pulled are not correct.

vincerubinetti commented 8 months ago

This is a bug. For now you can wrap your data in double quotes and that should fix it. Also see this fix on branch v1.2.1:

https://github.com/greenelab/lab-website-template/commit/79360758d692c02ad0817c370f9a6bd277336065

Since hopefully most people won't run into this niche bug case, I'm going to wait a little bit before releasing 1.2.1 to see if there are any regressions from 1.2.0 or other bugs I'd want to include in the new version.

michaelpginn commented 8 months ago

That worked, thanks!