2.8 KiB
Executable File
Indexing Information
{% if DOI -%}
DOI
[{{ DOI }}](https://doi.org/{{ DOI }}) {% endif -%}
{% if ISBN -%}
ISBN
[{{ ISBN }}](https://www.isbnsearch.org/isbn/{{ ISBN }}) {% endif -%}
Tags:
{% for t in tags -%}#{{ t.tag | replace(' ', '-') | replace('&', 'and') | replace('<', '') | replace('>', '') | replace('#', '') | replace('*', '') | replace('(', '') | replace(')', '') | replace('[', '') | replace(']', '') }}{% if not loop.last -%}, {% endif %}{% endfor %} {%- set in_read = false -%} {%- for collection in collections -%} {%- if collection.name == "Read" -%} {%- set in_read = true -%} {%- endif -%} {%- endfor -%}
{% if in_read %}
- {{title}} #Reading ✅ {{ importDate | format("YYYY-MM-DD") }} {% else %}
- ["] {{title}} #Reading {%- endif %}
{% if abstractNote -%}
[!Abstract] {{abstractNote}}{% endif -%}
{% if markdownNotes -%}
[!note] Markdown Notes {{markdownNotes}}}{% endif -%}
[!seealso] Related Papers {% for r in relations %}[{{ r.title }}]({{ r.citekey }}){% if not loop.last %}, {% endif %}{% endfor %}
Annotations
Notes
{# 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" %} [!done] Insight {% elif a.colorCategory == "Orange" %} [!warning] S? {% elif a.colorCategory == "Red" %} [!fail] Dubious {% else %} [!quote] Other Highlight {% endif -%} {{ a.annotatedText }} {% if a.comment -%}
{{ a.comment }} {% endif -%} {% endif -%} {%- endfor %}
Follow-Ups
{# Create a separate loop for Purple highlights as tasks #} {% for a in annotations -%} {% if a.type == "highlight" and a.colorCategory == "Purple" -%}
[!example] {{ a.annotatedText }}
- {{ a.comment }} #Follow-Up
{% if a.comment -%} {% endif -%} {% endif -%} {% endfor -%}