Skip to content

Instantly share code, notes, and snippets.

@fishyer
Created April 19, 2022 18:21
Show Gist options
  • Save fishyer/904bf5a55e372e5b244b8a94061ea422 to your computer and use it in GitHub Desktop.
Save fishyer/904bf5a55e372e5b244b8a94061ea422 to your computer and use it in GitHub Desktop.
{% if is_new_article %}- #Metadata
{% if author %}- Site:: {{author}}{% endif %}
{% if url %}- Reference:: {{url}}{% endif %}
{% endif %}
{% if is_new_article%}- #PageNotes
{% for highlight in page_notes -%}
{{highlight.annotation}}
{% if highlight.tags | length %} Tags: {% for tag in highlight.tags -%} #{{tag | replace(" ", "-")+" "}}{%- endfor %}{%- endif %}
{%- endfor -%}
{% endif %}
{% if is_new_article -%}- #Highlights {%- endif %}
{% for highlight in highlights -%} - {{highlight.text}} [>>]({{highlight.incontext}})
{% if highlight.tags | length %} - Tags: {% for tag in highlight.tags -%} #{{tag | replace(" ", "-")+" "}}{%- endfor %}{%- endif %}
{% if highlight.annotation %} - Annotation: {{highlight.annotation}}{%- endif -%}
{%- endfor -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment