我的网页之一需要包含一些项目的行(图片、标题、描述)。描述必须支持Markdown。我还没有找到在Jekyll中实现此功能的方法,除非使用插件或为每个项目创建多个文件。
另一个要求是该网站由Github Pages构建。即:不使用Jekyll插件,而是Redcarpet Markdown。
理想情况下,我希望创建一个Jekyll数据文件(_data/products.yml),其中包含类似下面的结构。请注意,描述(Description)包含Markdown列表和格式。
- Name: Company A
Year: 2005
Description: >
I was responsible for the following:
- Review of contracts
- Hiring
- Accounting
- Name: Company B
Year: 2010
Description: >
My role included **supervising** the marketing team and leading **publicity**.
我看到的另一个选项是使用上述信息的前置元素。它稍微有点麻烦,因为它将数据与特定页面(例如:work-experience.md)绑定。
我尝试过以上各种变体,但格式永远无法转换为HTML。应该如何处理?