From 3391f67f04cb7078f9fb59aa275896a921f38dfd Mon Sep 17 00:00:00 2001 From: samaradel Date: Sun, 20 Aug 2023 12:53:03 +0300 Subject: [PATCH] Add dropdown and fix external pages --- content/header/_index.md | 38 ++++++++++++++++-- css/index.css | 17 +++++++-- templates/blogPage.html | 4 +- templates/newsPage.html | 4 +- templates/partials/head.html | 4 +- templates/partials/header_custom.html | 55 ++++++++++++++------------- 6 files changed, 83 insertions(+), 39 deletions(-) diff --git a/content/header/_index.md b/content/header/_index.md index 8f7db6a..10c39a8 100644 --- a/content/header/_index.md +++ b/content/header/_index.md @@ -10,7 +10,37 @@ extra: - [About]("/about") - [Ventures]("/ventures") -- [Blog]("/blog") -- [News]("/newsroom") -- [Team]("/people") -- [Knowledge]("https://ourworldventures.github.io/info_ourworld/intro/intro.html") \ No newline at end of file +- Ecosystem + +{% row(padding="none") %} + + + +||| + + + +{% end %} + +- [Knowledge]("https://ourworldventures.github.io/info_ourworld/intro/intro.html") +- [Contact]("mailto:info@ourworld.tf") \ No newline at end of file diff --git a/css/index.css b/css/index.css index 2a0b23b..123997c 100644 --- a/css/index.css +++ b/css/index.css @@ -133,6 +133,14 @@ header .freeflow { position: absolute; } +#ecosystem-menu button { + background-color: transparent; +} + +#ecosystem-menu button a { + color: #1a1a1a; +} + footer .freeflow { width: 100vw; background-color: #eae8e3; @@ -146,9 +154,12 @@ footer .freeflow img { width: 200px; margin-bottom: 20px; } +#ecosystem-menu > div.freeflow { + padding-top: 0px !important; + padding-bottom: 0px !important; +} - -header .freeflow div { +header .freeflow div, #ecosystem-menu div { box-shadow: none; text-transform: uppercase; font-weight: 700 !important; @@ -347,7 +358,7 @@ a:hover{ } } -header #menu button { +header #menu button, #ecosystem-menu button{ @apply lg:text-lg px-6 diff --git a/templates/blogPage.html b/templates/blogPage.html index 3c536cd..1054580 100644 --- a/templates/blogPage.html +++ b/templates/blogPage.html @@ -12,12 +12,12 @@ -{% set split = page.content | split(pat="threefold.io") %} +{% set split = page.content | split(pat="ourworld.tf") %} {% if split | length < 2 %} {% set content=page.content %} {% else %} {% set content="" %} {% for part in split %} {% if part is starting_with("/blog") %} {% set split_part=part | split(pat='/">' ) %} {% set link=split_part[0] %} {% set link=link | replace(from="/blog/post" , to="/blog" ) %} {% set link=link | replace(from="_" , to="-" ) %} {% set rest_part=split_part | slice(start=1) | join(sep='/">' ) %} {% set part=link ~ '/">' ~ rest_part %} {% endif %} {% if - loop.first %} {% set_global content=part%} {% else %} {% set_global content=content ~ "threefold.io" ~ part%} {% endif + loop.first %} {% set_global content=part%} {% else %} {% set_global content=content ~ "ourworld.tf" ~ part%} {% endif %} {% endfor %} {% endif %}
diff --git a/templates/newsPage.html b/templates/newsPage.html index 72f5f60..887be19 100644 --- a/templates/newsPage.html +++ b/templates/newsPage.html @@ -1,7 +1,7 @@ {% extends "_default/base.html" %} {% block content %} -{% set split = page.content | split(pat="threefold.io") %} +{% set split = page.content | split(pat="ourworld.tf") %} {% if split | length < 2 %} {% set content = page.content %} {% else %} @@ -25,7 +25,7 @@ {% if loop.first %} {% set_global content = part %} {% else %} - {% set_global content = content ~ "threefold.io" ~ part %} + {% set_global content = content ~ "ourworld.tf" ~ part %} {% endif %} {% endfor %} {% endif %} diff --git a/templates/partials/head.html b/templates/partials/head.html index 60eff64..c23e2dc 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -49,7 +49,7 @@ charset="UTF-8"> @@ -78,7 +78,7 @@ var _mtm = window._mtm = window._mtm || []; _mtm.push({ 'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start' }); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; - g.async = true; g.src = 'https://analytics.threefold.io/js/container_KIcuIdn4.js'; s.parentNode.insertBefore(g, s); + g.async = true; g.src = 'https://analytics.ourworld.tf/js/container_KIcuIdn4.js'; s.parentNode.insertBefore(g, s); diff --git a/templates/partials/header_custom.html b/templates/partials/header_custom.html index 9f64e30..67b45cd 100644 --- a/templates/partials/header_custom.html +++ b/templates/partials/header_custom.html @@ -30,33 +30,36 @@