Created
October 1, 2023 12:18
-
-
Save maxwellamaral/65aa47dbf29563ab7bcdc1ac2600df77 to your computer and use it in GitHub Desktop.
Template para o plugin Raindrop do Obsidian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if link %}link: {{link}}{% endif %} | |
{% if tags|lenght %}tags: {%for tag in tags %} | |
- {{tag}}{% endfor %}{% endif %} | |
{% if cover %}banner: {{cover}}{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [[{{title}}]] | |
{% if link %}URL:: {{link}}{% endif %} | |
{% if tags|length %}tags:: #favoritos #{{ tags | join(", #") }}{% endif %} | |
{% if 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