-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Enable usage of relative URLs for avatars #683
Description
Hi @gcushen,
Based on these 3 comments on the blogdown repo:
- wrong relative paths when using other themes rstudio/blogdown#84 (comment)
- wrong relative paths when using other themes rstudio/blogdown#84 (comment)
- wrong relative paths when using other themes rstudio/blogdown#84 (comment)
I believe that hugo-academic doesn't support relative URLs for the avatar. That is https://github.com/gcushen/hugo-academic/blob/f45e2c0ca518c458cb3b6259ee2ccd1a100e09bd/layouts/partials/widgets/about.html#L13-L14 uses absURL in: {{ (printf "img/%s" $.Site.Params.avatar) | absURL }}'. Would changing this to {{ (printf "img/%s" $.Site.Params.avatar) | absURL | relURL }}' solve this? Or maybe changing to {{ (printf "img/%s" $.Site.Params.avatar) | relURL }}'? (I don't know the proper hugo syntax)
By the way, I currently see 9 results of absURL when searching the repo https://github.com/gcushen/hugo-academic/search?utf8=%E2%9C%93&q=absURL&type= that I guess could result in similar issues.
Best,
Leo