{{title|replace("#","")|replace("?","")|replace(".","")|replace(""","")|replace(""","")|replace("'","")|replace("'","")|truncate(127)}} by {{author|truncate(120)}} - Notes
I do this so that weird characters or overly-long file names don't break dropbox or git, tho Readwise now natively sanitizes things.
{% if document_tags %}> [!info]- Metadata →
> - Tags: {% for tag in document_tags %}#{{tag}} {% endfor %} {%endif %}
{% if summary -%}> [!summary]
> {{summary}}{% endif %}
{% if document_note -%}> [!note]
> {{document_note}} {% 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 %}
{% if highlight_tags %}* {% for tag in highlight_tags %}#{{tag}} {% endfor %} {%endif %}
> [!cite]- See full document content →
> ![[{{full_document_text_path}}]]
alias:
post_id: "{{book_id}}"
title: "{{full_title}}"
subtitle:
source:
- "[[{{author}}]]"
- "{{source}}"
purpose:
last_updated: {{last_highlighted_date|date('Y-m-d')}}
post_date: {{published_date|date('Y-m-d')}}
live_url: {{url}}
featured_img:
related:
Note: The above is designed to closely match the default Substack export format, and I don't necessarily recommend it to anyone who doesn't care about exporting a decade of articles from Substack in an Obsidian-bases compatible format that meshes well with their document archive from Readwise.