How to link to co-authors consistently throughout? #2213
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This was wrong. Just fixed that, thanks for noticing. The answer is in _layouts/bib.liquid. More specifically: {%- assign clean_last_name = author_last_name | downcase | remove_accents -%}
{% if site.data.coauthors[clean_last_name] %}
{%- for coauthor in site.data.coauthors[clean_last_name] -%}
{% if coauthor.firstname contains author.first %}
{%- assign coauthor_url = coauthor.url -%} We normalize the author last name and search for an entry in _data/coauthors.yml, so the last names here must be lower case and without accents. If it finds, it iterates through all possible first names and checks if one applies.
The order doesn't matter, but authors hidden in "more authors" will not link to their urls. You can check in _layouts/bib.liquid that we don't use |
Beta Was this translation helpful? Give feedback.
This was wrong. Just fixed that, thanks for noticing.
The answer is in _layouts/bib.liquid. More specifically:
We normalize the author last name and search for an entry in _data/coauthors.yml, so the last names here must be lower case and without accents.
If …