Skip to content

Instantly share code, notes, and snippets.

@maxwellamaral
Created October 1, 2023 12:18
Show Gist options
  • Save maxwellamaral/65aa47dbf29563ab7bcdc1ac2600df77 to your computer and use it in GitHub Desktop.
Save maxwellamaral/65aa47dbf29563ab7bcdc1ac2600df77 to your computer and use it in GitHub Desktop.
Template para o plugin Raindrop do Obsidian
{% if link %}link: {{link}}{% endif %}
{% if tags|lenght %}tags: {%for tag in tags %}
- {{tag}}{% endfor %}{% endif %}
{% if cover %}banner: {{cover}}{% endif %}
# [[{{title}}]]
{% if link %}URL:: {{link}}{% endif %}
{% if tags|length %}tags:: #favoritos #{{ tags | join(", #") }}{% endif %}
{% if cover %}
![{{title}}]({{cover}})
{% endif %}
{% if is_new_article %}
{% if excerpt %}{{excerpt}}{% endif %}
## Highlights
{% endif -%}{% for highlight in highlights %}
{% if highlight.color == "red" -%}
{%- set callout = "danger" -%}
{%- elif highlight.color == "blue" -%}
{%- set callout = "info" -%}
{%- elif highlight.color == "green" -%}
{%- set callout = "check" -%}
{%- elif highlight.color == "yellow" -%}
{%- set callout = "info" -%}
{%- else -%}
{%- set callout = "quote" -%}
{%- endif -%}
> [!{{callout}}]+ Atualizado em {{highlight.lastUpdate}}
>
> {{highlight.text.split("\n") | join("\n>")}}
{% if highlight.note -%}> > {{highlight.note + "\n"}}{%- endif %}
{%- endfor -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment