Skip to content

Enable usage of relative URLs for avatars #683

@lcolladotor

Description

@lcolladotor

Hi @gcushen,

Based on these 3 comments on the blogdown repo:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions