如何在 Jekyll 中的字符串开头放置 link?

How can I place a link at the beginning of a string in Jekyll?

我正在尝试使用 Jekyll + Markdown 在静态站点中放置一些 link,如下所示:

  - role: Scrum Master - Project Manager
    time: SEP 2019 - PRESENT
    company: [Vincae](https://vincae.com/), Brazil
    details: |
      Responsible for implementing and maintaining a scrum methodology during the development of Unreal Engine based games like [Pure Forge](https://store.steampowered.com/app/1060160/PureForge).

我在 "details" 中的第二个 link 没问题,但我在 "company" 中的第一个 link 出现以下错误:

         Error: (C:/Users/raschmitt/Dropbox/Public/Coding/Jekyll/online-cv/_data/data.yml): did not find expected key while parsing a block mapping at line 92 column 5
         Error: Run jekyll build --trace for more information.

我做错了什么,我该如何改正?

YML 解析不喜欢未加引号的字符串中的保留字符。这里肯定是冒号':'.

为了避免保留字符冲突,只需引用或双引号您的字符串:

  - role: Scrum Master - Project Manager
    time: SEP 2019 - PRESENT
    company: '[Vincae](https://vincae.com/), Brazil'
    details: |
      blah
      blah

并输出{{ m.company | markdownify }}