Skip to content

Instantly share code, notes, and snippets.

@galligan
Last active January 3, 2021 12:41
Show Gist options
  • Save galligan/375d110f691af1120a4940decbe1c713 to your computer and use it in GitHub Desktop.
Save galligan/375d110f691af1120a4940decbe1c713 to your computer and use it in GitHub Desktop.
My Readwise Roam Formatting

Page title

{% if category == "books" %}Book/{{title}}{% elif category == “articles” %}Article/{{title}}{% elif category == “podcasts” %}Podcast/{{author}}/{{title}}{% elif category == “tweets” %}#tweet{% endif %}

Page metadata

{% if category == "tweets" %}
{% else %}
{% if url %}Link:: {{url}}{% endif %}
{% if category == "podcasts" %}
Show:: [[{{author}}]]
Tags:: #podcast #Readwise
{% else %}
Author:: [[{{author}}]]
Reading status:: {% if category == “books” %}#reading{% else %}#[[have read]]{% endif %}
Full Title:: {{full_title}}
Recommended by::
{% if category == “books” %}
Tags:: #book #Readwise
{{"{{"}}[[TODO]]{{"}}"}} #[[to process]] & summarize the highlights from this book
{% else %}
Tags:: #article #Readwise
{% endif %}
{% endif %}
{% if image_url %}![]({{image_url}}){% endif %}
{% endif %}

Highlights header

{% if is_new_page %}
Highlights first synced by #Readwise [[{{date}}]]
{% elif has_new_highlights %}
New highlights added [[{{date}}]] at {{time}}
{% endif %}

Sync notification

On {{date}} at {{time}} Readwise synced {{num_highlights}} highlight{{num_highlights|pluralize}} from {{num_books}} source{{num_books|pluralize}}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment