Skip to content

Instantly share code, notes, and snippets.

@marcsolanadal
Last active January 20, 2023 15:06
Show Gist options
  • Save marcsolanadal/5f05bcfc9f32e3b5fe1de44182270a39 to your computer and use it in GitHub Desktop.
Save marcsolanadal/5f05bcfc9f32e3b5fe1de44182270a39 to your computer and use it in GitHub Desktop.
Readwise settings

File name

{{title|replace(' ','-')|lower()|replace(""","")|replace(""","")|replace("'","")|replace("'","")|truncate(127)}}

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 title

Page metadata

%%  
%%  
date: [[{{date}}]]
tags: #type/literature #source/{{category}} #state/processing
author: {% if author %}[[@{{author|replace(' ','-')|lower()}}]]{% endif %}
full-title: {{full_title}} 
{% if document_tags -%}
document-tags: {% for tag in document_tags %}[[{{tag}}]] {% endfor %}
{% endif -%}
{% if url -%}
source: <{{url}}>
{% endif -%}
%%

# {{title|upper()}}

---

{% if image_url -%}
![cover-image]({{image_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 %}* 📝 {{ highlight_note }}{% endif %}
{% if highlight_location and highlight_location_url %}* [{{highlight_location}}]({{highlight_location_url}}){% elif highlight_location %} ({{highlight_location}}){% endif %}

Based on Eleanor's Konik settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment