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") }}