Skip to content

How to link to co-authors consistently throughout? #2213

Answered by george-gca
catanzaromj asked this question in Q&A
Discussion options

You must be logged in to vote

In CUSTOMIZE.md, the author last names are capitalized. When I try that, none of the authors get linked to.

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 …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@catanzaromj
Comment options

@catanzaromj
Comment options

@george-gca
Comment options

@catanzaromj
Comment options

Answer selected by catanzaromj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants