Search code examples
rr-markdownbookdown

How to link author URLs in a bookdown project?


If I have a {pkgdown} website for an R package, I can include the author URLs in _pkgdown.yml:

authors:
  Indrajeet Patil:
    href: https://sites.google.com/site/indrajeetspatilmorality/

And the URL will be present in the website footer:

enter image description here

How can I do the same for a {bookdown} website?

enter image description here


Solution

  • You should be able to use Markdown syntax to achieve that

    author: '[Indrajeet Patil](https://sites.google.com/site/indrajeetspatilmorality/)'
    

    this will make the author Pandoc variable be a link in the HTML template.

    Depending on the theme you are using, you may need to tweak the CSS so the the link can correctly be readable on the footer background