update mission blogs links

This commit is contained in:
2022-09-07 15:07:07 +02:00
parent 038dc6ec52
commit 73dd716678
3 changed files with 6 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ 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 = true external_links_no_follow = true

View File

@@ -26,11 +26,11 @@ To build an open-source peer-to-peer Internet infrastructure that removes all fo
{% row(style="center narrow") %} {% row(style="center narrow") %}
<button>[Collective Dream](https://threefold.io/blog/post/tf_grid_peoples_internet/)</button> <button>[Collective Dream](/blog/tf-grid-peoples-internet/)</button>
||| |||
<button>[Planet & People First](https://threefold.io/blog/post/planet_first_people_first/)</button> <button>[Planet & People First](/blog/planet-first-people-first/)</button>
||| |||

View File

@@ -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="|||") %}