first commit
This commit is contained in:
Executable
+31
@@ -0,0 +1,31 @@
|
||||
---
|
||||
created: 2025-08-30T11:45
|
||||
updated: 2025-09-22T13:27
|
||||
---
|
||||
|
||||
// 以下是自用修改的Raindrop Highlights插件内容模板
|
||||
{% if is_new_article %}
|
||||
{% if link %}Source URL:: {{link}}{% endif %}
|
||||
{% if tags|length %}tags:: #{{ tags | join(", #") }}{% endif %}
|
||||
|
||||
---
|
||||
# {{title}}
|
||||
|
||||
## Highlights
|
||||
{% endif -%}{% for highlight in highlights %}
|
||||
{% if highlight.color == "red" -%}
|
||||
{%- set callout = "danger" -%}
|
||||
{%- elif highlight.color == "blue" -%}
|
||||
{%- set callout = "info" -%}
|
||||
{%- elif highlight.color == "green" -%}
|
||||
{%- set callout = "check" -%}
|
||||
{%- else -%}
|
||||
{%- set callout = "quote" -%}
|
||||
{%- endif -%}
|
||||
> [!{{callout}}]
|
||||
>
|
||||
> {{highlight.text.split("\n") | join("\n>")}}
|
||||
{% if highlight.note -%}> > {{highlight.note + "\n"}}{%- endif %}
|
||||
|
||||
{%- endfor -%}
|
||||
|
||||
Reference in New Issue
Block a user