Skip to content

in personal.info.custom the image does not work #101

@CMon

Description

@CMon

Describe the bug
I try to a add a repository where no icon exists inside font-awesome, the example toml and the code suggest that image should be used for this. but if I set it like its mentioned inside the toml file, I get an error from the toml parser:

error: failed to parse TOML (invalid string
expected `"`, `'` at line 63 column 15)
  ┌─ cv.typ:3:21
  │
3 │ #let metadata = toml("./metadata.toml")
  │                      ^^^^^^^^^^^^^^^^^

and if i only provide the string, then I get an error from the lib:

error: type string has no method `with`
   ┌─ @preview/brilliant-cv:2.0.5/cv.typ:99:21
   │
99 │           icon = img.with(width: 10pt)

To Reproduce
Steps to reproduce the behavior:

  1. add a personal.info.custom-1 entry
  2. try to add an image entry for that entry
  3. compile

Expected behavior
Have the lib parse a path into an image instead of expecting it to be an image instance after toml parsing

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream update pendingTo work on this, we are waiting for updates of upstream dependencies

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions