Skip to content

Instantly share code, notes, and snippets.

@fishyer
Created April 19, 2022 17:59
Show Gist options
  • Save fishyer/32b9d98572ff11a305d5842c65112b7c to your computer and use it in GitHub Desktop.
Save fishyer/32b9d98572ff11a305d5842c65112b7c to your computer and use it in GitHub Desktop.
{% if is_new_article %}# {{title}}
## Metadata
{% if author %}- Author: [{{author}}]({{authorUrl}}){% endif %}
- Title: {{title}}
{% if url %}- Reference: {{url}}{% endif %}
- Category: #article{% endif %}
{% if is_new_article%}## Page Notes
{% 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}} — [Updated on {{highlight.updated}}]({{highlight.incontext}}) {% if 'Private' != highlight.group %} — Group: #{{highlight.group| replace(" ", "-")}}{%- endif %}
{% 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