zhaohongxuan / obsidian-weread-plugin

Obsidian Weread Plugin is a plugin to sync Weread(微信读书) hightlights and annotations into your Obsidian Vault.
MIT License
1.25k stars 65 forks source link

优化一个模板,简化了时间戳的内容 #143

Open Dennifer opened 1 year ago

Dennifer commented 1 year ago

个人不是很喜欢时间戳功能,想以内容为核心,所以删去了时间信息,根据之前一位uu的代买进一步简化了界面

---
isbn: {{metaData.isbn}}
category: {{metaData.category}}
---
> [!abstract] {{metaData.title}}
> - ![ {{metaData.title}}|200]({{metaData.cover}})
> - 书名: {{metaData.title}}
> - 作者: {{metaData.author}}
> - 简介: {{metaData.intro}}
> - 出版时间: {{metaData.publishTime}}
> - ISBN: {{metaData.isbn}}
> - 分类: {{metaData.category}}
> - 出版社: {{metaData.publisher}}
> - 划线数量:{{metaData.noteCount}}
> - 笔记数量: {{metaData.reviewCount}}

# 高亮划线
{% for chapter in chapterHighlights %}
## {{chapter.chapterTitle}}
{% for highlight in chapter.highlights %}{% if highlight.reviewContent %}{% else %}
> [!tip] {{ highlight.markText | trim }}{% endif %}
{% endfor %}{% endfor %}

# 读书笔记
{% for chapter in bookReview.chapterReviews %}{% if chapter.reviews or chapter.chapterReview %}
## {{chapter.chapterTitle}}
{% if  chapter.chapterReviews %}{% for chapterReview in chapter.chapterReviews %}> [!note] **章节评论**{{chapterReview.createTime}}
>  - {{review.createTime}}
>  {{chapterReview.content}}
{% endfor%}{%endif %}

{% if chapter.reviews %}{%for review in chapter.reviews %}> [!note] {{review.abstract | trim }}
>  -  {{review.createTime}}
>     {{review.content}}

{% endfor %}{%endif %}{% endif %}{% endfor %}

# 本书评论
{% if bookReview.bookReviews %}{% for bookReview in bookReview.bookReviews %}
> [!note] No.{{loop.index}}  {{bookReview.createTime}}
> {{bookReview.mdContent}}
{% endfor%}{% endif %}

效果如下

image

image

hadwinn commented 1 year ago

用上了,感觉不错,比默认的简洁不少。

i-iooi-i commented 5 months ago

感谢,简介舒服多了,可以聚焦重点,很舒适。