From 89603e0de0e551e0f67e0a787cd8ca02adc01b67 Mon Sep 17 00:00:00 2001 From: Dane Sabo Date: Mon, 10 Feb 2025 09:36:30 -0500 Subject: [PATCH] vault backup: 2025-02-10 09:36:30 --- 1000s Templates/Literature Note.md | 37 +++++++++++++++++++----------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/1000s Templates/Literature Note.md b/1000s Templates/Literature Note.md index cbf517058..c349338e7 100755 --- a/1000s Templates/Literature Note.md +++ b/1000s Templates/Literature Note.md @@ -69,26 +69,37 @@ pages: {{ pages }} >{% for r in relations %}[{{ r.title }}]({{ r.citekey }}){% if not loop.last %}, {% endif %}{% endfor %} # Annotations -{% for a in annotations -%} -{%- if a.type == "highlight" -%} -{% if a.colorCategory == "Yellow" %} +{# Process non-Purple highlights #} +{% for a in annotations %} + {% if a.type == "highlight" and a.colorCategory != "Purple" %} + {% if a.colorCategory == "Yellow" %} >[!attention] Highlight -{%- elif a.colorCategory == "Green" %} + {% elif a.colorCategory == "Green" %} >[!done] Quote -{%- elif a.colorCategory == "Purple" %} ->[!example] Secondary Source -{%- elif a.colorCategory == "Orange" %} + {% elif a.colorCategory == "Orange" %} >[!question] Don't Understand -{%- elif a.colorCategory == "Red" %} + {% elif a.colorCategory == "Red" %} >[!fail] Possibly Incorrect -{%- else %} + {% else %} >[!quote] Other Highlight -{%- endif %} + {% endif %} > *{{ a.annotatedText }}* > {% if a.comment %} > >[!note] Note > >{{ a.comment }} -{%- endif %} -{% endif %} -{%- endfor %} +> {% endif %} + {% endif %} +{% endfor %} + +## Tasks +{# Create a separate loop for Purple highlights as tasks #} +{% for a in annotations %} + {% if a.type == "highlight" and a.colorCategory == "Purple" %} +- [ ] {{ a.annotatedText }} + {% if a.comment %} + > Note: {{ a.comment }} + {% endif %} + {% endif %} +{% endfor %} + ### Imported: {{ importDate | format("YYYY-MM-DD h:mm a") }}