test fix internal links

This commit is contained in:
2022-09-07 14:27:52 +02:00
parent dd9d6e0a7c
commit 038dc6ec52
2 changed files with 2 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ render_emoji = false
# 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
# external_links_target_blank = false
external_links_target_blank = true
# Whether to set rel="nofollow" for all external links
external_links_no_follow = true

View File

@@ -36,9 +36,7 @@ Parameters:
{% endif %}
<!-- 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 -->
{% set columns = body | safe | markdown | split(pat="|||") %}