Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way around "Append Mode" off as dangerous option #81

Open
mstankus opened this issue Aug 16, 2024 · 0 comments
Open

Way around "Append Mode" off as dangerous option #81

mstankus opened this issue Aug 16, 2024 · 0 comments

Comments

@mstankus
Copy link

In this plugin, the "Append Mode" flag is labelled dangerous. I added the last line below as my way to handle notes where I want to make comments. This way your notes are in a seperate file which is not overwritten. I thought that this could be added to the documentation or as a comment in the settings for the plugin.

Thanks for the wonderful plugin!

Mark Stankus

{% if is_new_article %}

Metadata

{% if link %}Source URL:: {{link}}{% endif %}
{% if tags|length %}Topics:: #{{ tags | join(", #") }}{% endif %}


{{title}}

{% 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" -%}
{%- else -%}
{%- set callout = "quote" -%}
{%- endif -%}

[!{{callout}}]+ Updated on {{highlight.lastUpdate}}

{{highlight.text.split("\n") | join("\n>")}}
{% if highlight.note -%}> > {{highlight.note + "\n"}}{%- endif %}

{%- endfor -%}

[[{{title}}---Notes]]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant