From 73dd716678c9b70dc6b3593d3e4f5fa4ffeb8136 Mon Sep 17 00:00:00 2001 From: ehab-hassan Date: Wed, 7 Sep 2022 15:07:07 +0200 Subject: [PATCH] update mission blogs links --- config.toml | 2 +- content/mission/index.md | 4 ++-- templates/shortcodes/row.html | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index a482b14b7..b3046bbb1 100644 --- a/config.toml +++ b/config.toml @@ -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 = true +# external_links_target_blank = false # Whether to set rel="nofollow" for all external links external_links_no_follow = true diff --git a/content/mission/index.md b/content/mission/index.md index 42012d4b0..e3783bd91 100644 --- a/content/mission/index.md +++ b/content/mission/index.md @@ -26,11 +26,11 @@ To build an open-source peer-to-peer Internet infrastructure that removes all fo {% row(style="center narrow") %} - + ||| - + ||| diff --git a/templates/shortcodes/row.html b/templates/shortcodes/row.html index 1e72ad2a4..5950f30ad 100644 --- a/templates/shortcodes/row.html +++ b/templates/shortcodes/row.html @@ -36,7 +36,9 @@ Parameters: {% endif %} - +{% 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 %} {% set columns = body | safe | markdown | split(pat="|||") %}