1.9 KiB
Executable File
Indexing Information
DOI
[{{ DOI }}](https://doi.org/{{ DOI }})
ISBN
[{{ ISBN }}](https://www.isbnsearch.org/isbn/{{ ISBN }})
Tags:
{% for t in tags %}#{{ t.tag | replace(' ', '-') | replace('&', 'and') | replace('<', '') | replace('>', '') | replace('#', '') | replace('*', '') | replace('(', '') | replace(')', '') | replace('[', '') | replace(']', '') }}{% if not loop.last %}, {% endif %}{% endfor %}
[!Abstract] {% if abstractNote %}{{abstractNote}}{% endif %}
[!note] Markdown Notes {% if markdownNotes %}{{markdownNotes}}{% else %}{{ "None!" }}{% endif %}
Annotations
{% macro calloutHeader(type, color) -%}
{% if type == "highlight" %}
Quote
{% endif %}
{% if type == "text" %}
Note
{% endif %}
{% endmacro %}
{% persist "annotations" %} {% set newAnnotations = annotations | filterby("date", "dateafter", lastImportDate) %} {% if newAnnotations.length > 0 %}
{% for a in newAnnotations -%} {{calloutHeader(a.type, a.color)}}
{{a.annotatedText}} {% endfor %} {% endif %} {% endpersist %}