Skip to content

Instantly share code, notes, and snippets.

@eleanorkonik
Created February 4, 2022 15:05
Show Gist options
  • Save eleanorkonik/1f0586fe13d98f1dbf18ec72b00bf37d to your computer and use it in GitHub Desktop.
Save eleanorkonik/1f0586fe13d98f1dbf18ec72b00bf37d to your computer and use it in GitHub Desktop.
Eleanor's Readwise Settings

File name

{{title|replace(""","")|replace(""","")|replace("'","")|replace("'","")|truncate(127)}} by {{author|truncate(120)}}

I do this so that weird characters or overly-long file names don't break dropbox or git, since Readwise doesn't natively sanitize things.

Page metadata

Metadata

- Author: {% if author %}[[{{author}}]]{% endif %}
- Imported: [[{{date}}]] from {{source}}
- Real Title: {{full_title}}
{% if document_tags -%}
- Document Tags: {% for tag in document_tags %} #{{tag}} {% endfor %}
{% endif -%}
{% if url -%}
- Link: {{url}}
{% endif -%}

Highlights Header

{% if is_new_page %}
## Highlights
{% elif has_new_highlights -%}
## New highlights added {{date|date('F j, Y')}} at {{time}}
{% endif -%}

Highlight


### {% if highlight_location != "View Highlight" and highlight_location != "View Tweet" %}{{highlight_location}}{% else %}id{{highlight_id}}{% endif %}

> {{ highlight_text }}
{% if highlight_note %}
- [n] {{ highlight_note }}
{% endif %}
{% if highlight_location and highlight_location_url %} * [{{highlight_location}}]({{highlight_location_url}}){% elif highlight_location %} ({{highlight_location}}){% endif %}

YAML Header

date: {{date}}
cssclass: admonitions
tags: pkm/process
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment