Skip to content

结合timeline插件的妙用 #19

Description

@eryajf

通过对模板稍作调整,然后生成的内容结合timeline插件,就能生成一个看剧历程的效果。

我的模板如下:

---
author: eryajf
doubanId: {{id}}
title: {{title}}
type: {{type}}
score: {{score}}
originalTitle: {{originalTitle}}
genre: {{genre}}
datePublished: {{datePublished}}
director: {{director}}
actor: {{actor}}
author: {{author}}
tags: {{type}}
url: {{url}}
createTime: {{currentDate}} {{currentTime}}
desc: {{desc}}
tags: timeline 看剧历程
---

![image]({{image}})


<span class='ob-timelines' data-date='{{currentDate}} {{currentTime}}' data-title='{{title}}' data-img='{{image}}' data-class = "customCardCSS">this_is_desc</span> 

这里是正文内容

然后单独创建一个文件,内容如下:

```timeline
看剧历程
```

呈现效果如下:

image

但现在有一个问题是,豆瓣那里拿到的图片地址,在这里无法直接渲染,需要单独放到图床才能使用。

不知道作者有没有办法拿到诸如jpg的图呢?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions