{{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.
%%
%%
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 -%}
{% if is_new_page %}
## Highlights
{% elif has_new_highlights -%}
## New highlights added {{date|date('F j, Y')}} at {{time}}
{% endif -%}
### {% 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.