recover link script
This commit is contained in:
@@ -39,13 +39,13 @@ render_emoji = false
|
|||||||
|
|
||||||
# Whether external links are to be opened in a new tab
|
# Whether external links are to be opened in a new tab
|
||||||
# If this is true, a `rel="noopener"` will always automatically be added for security reasons
|
# If this is true, a `rel="noopener"` will always automatically be added for security reasons
|
||||||
external_links_target_blank = true
|
# external_links_target_blank = false
|
||||||
|
|
||||||
# Whether to set rel="nofollow" for all external links
|
# Whether to set rel="nofollow" for all external links
|
||||||
external_links_no_follow = false
|
external_links_no_follow = true
|
||||||
|
|
||||||
# Whether to set rel="noreferrer" for all external links
|
# Whether to set rel="noreferrer" for all external links
|
||||||
external_links_no_referrer = false
|
external_links_no_referrer = true
|
||||||
|
|
||||||
# Whether smart punctuation is enabled (changing quotes, dashes, dots in their typographic form)
|
# Whether smart punctuation is enabled (changing quotes, dashes, dots in their typographic form)
|
||||||
# For example, `...` into `…`, `"quote"` into `“curly”` etc
|
# For example, `...` into `…`, `"quote"` into `“curly”` etc
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ Parameters:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<!-- makes external links in row open in new tabs-->
|
<!-- makes external links in row open in new tabs-->
|
||||||
|
{% set body = body | markdown | replace(from='href="', to='target="_blank" href="') | safe %}
|
||||||
|
{% set base_url = get_url(path="")%}
|
||||||
|
{% set body = body | markdown | replace(from='target="_blank" href="' ~ base_url , to='href="' ~ base_url) | safe %}
|
||||||
|
|
||||||
<!-- Splits body to columns -->
|
<!-- Splits body to columns -->
|
||||||
{% set columns = body | safe | markdown | split(pat="|||") %}
|
{% set columns = body | safe | markdown | split(pat="|||") %}
|
||||||
|
|||||||
Reference in New Issue
Block a user