From a5993100fde3d332d1022c29b0d2327436a49871 Mon Sep 17 00:00:00 2001 From: Julien Chevallier Date: Fri, 9 Jan 2026 22:15:36 +0100 Subject: [PATCH] Add HAL button (#3404) Adds a HAL button in the same spirit as the arXiv button. - add HAL button to `_layouts/bib.liquid` - add `hal` to the filtered keywords in `_config.yml` - add `hal` to the documentation in `CUSTOMIZE.md` --- CUSTOMIZE.md | 3 ++- _config.yml | 1 + _layouts/bib.liquid | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CUSTOMIZE.md b/CUSTOMIZE.md index 28951a7..26efc31 100644 --- a/CUSTOMIZE.md +++ b/CUSTOMIZE.md @@ -328,7 +328,7 @@ To access the collections, you can use the `site.COLLECTION_NAME` variable in yo To add publications create a new entry in the [\_bibliography/papers.bib](_bibliography/papers.bib) file. You can find the BibTeX entry of a publication in Google Scholar by clicking on the quotation marks below the publication title, then clicking on "BibTeX", or also in the conference page itself. By default, the publications will be sorted by year and the most recent will be displayed first. You can change this behavior and more in the `Jekyll Scholar` section in [\_config.yml](_config.yml) file. -You can add extra information to a publication, like a PDF file in the `assets/pdfs/` directory and add the path to the PDF file in the BibTeX entry with the `pdf` field. Some of the supported fields are: `abstract`, `altmetric`, `annotation`, `arxiv`, `bibtex_show`, `blog`, `code`, `dimensions`, `doi`, `eprint`, `html`, `isbn`, `pdf`, `pmid`, `poster`, `slides`, `supp`, `video`, and `website`. +You can add extra information to a publication, like a PDF file in the `assets/pdfs/` directory and add the path to the PDF file in the BibTeX entry with the `pdf` field. Some of the supported fields are: `abstract`, `altmetric`, `annotation`, `arxiv`, `bibtex_show`, `blog`, `code`, `dimensions`, `doi`, `eprint`, `hal`, `html`, `isbn`, `pdf`, `pmid`, `poster`, `slides`, `supp`, `video`, and `website`. ### Author annotation @@ -378,6 +378,7 @@ There are several custom bibtex keywords that you can use to affect how the entr - `blog`: Adds a "Blog" button redirecting to the specified link - `code`: Adds a "Code" button redirecting to the specified link - `dimensions`: Adds a [Dimensions](https://www.dimensions.ai/) badge (Note: if DOI or PMID is provided just use `true`, otherwise only add the Dimensions' identifier here - the link is generated automatically) +- `hal`: Adds a link to the HAL website (Note: only add the hal identifier (hal-xxx or tel-xxx) here - the link is generated automatically) - `html`: Inserts an "HTML" button redirecting to the user-specified link - `pdf`: Adds a "PDF" button redirecting to a specified file (if a full link is not specified, the file will be assumed to be placed in the /assets/pdf/ directory) - `poster`: Adds a "Poster" button redirecting to a specified file (if a full link is not specified, the file will be assumed to be placed in the /assets/pdf/ directory) diff --git a/_config.yml b/_config.yml index a9088f0..10436f6 100644 --- a/_config.yml +++ b/_config.yml @@ -325,6 +325,7 @@ filtered_bibtex_keywords: dimensions, eprint, google_scholar_id, + hal, html, inspirehep_id, pdf, diff --git a/_layouts/bib.liquid b/_layouts/bib.liquid index db179fd..08b1a45 100644 --- a/_layouts/bib.liquid +++ b/_layouts/bib.liquid @@ -203,6 +203,9 @@ {% if entry.arxiv %} arXiv {% endif %} + {% if entry.hal %} + HAL + {% endif %} {% if entry.bibtex_show %} Bib {% endif %}