diff --git a/content/home/_index.md b/content/home/_index.md index a43017c65..cfc093ee1 100644 --- a/content/home/_index.md +++ b/content/home/_index.md @@ -1,3 +1,12 @@ --- +title: "WELCOME TO THE" +sort_by: "weight" + +extra: + subtitle: "People’s Internet" + slogan: Join the peer-to-peer revolution + imgPath: new_home_header.jpg + template: "index.html" --- +Powered by the ThreeFold blockchain the People’s Internet is the layer 0 infrastructure for an open source P2P Internet owned by humanity. diff --git a/content/home/new_home_header.jpg b/content/home/new_home_header.jpg new file mode 100644 index 000000000..1dcd64ace Binary files /dev/null and b/content/home/new_home_header.jpg differ diff --git a/content/home/partenerships/partner1/index.md b/content/home/partenerships/partner1/index.md index 10da65454..255107d7a 100644 --- a/content/home/partenerships/partner1/index.md +++ b/content/home/partenerships/partner1/index.md @@ -1,6 +1,6 @@ --- title: "Expand the People’s Internet" - +weight: 1 extra: subtitle: "and earn TFT" button: Become a Farmer diff --git a/content/home/partenerships/partner2/index.md b/content/home/partenerships/partner2/index.md index a7078f1ed..af8c1786b 100644 --- a/content/home/partenerships/partner2/index.md +++ b/content/home/partenerships/partner2/index.md @@ -1,6 +1,6 @@ --- title: DECENTRALIZE YOUR - +weight: 2 extra: subtitle: "DATA AND WORKLOADS" imgPath: network_new.jpg diff --git a/templates/_default/base.html b/templates/_default/base.html index 65c97ba2c..bbcecf7c4 100644 --- a/templates/_default/base.html +++ b/templates/_default/base.html @@ -26,7 +26,7 @@ -
+
{% block content %}{% endblock %}
diff --git a/templates/index.html b/templates/index.html index 07cff67a1..2cc258919 100644 --- a/templates/index.html +++ b/templates/index.html @@ -12,7 +12,7 @@
- + {% include "partials/header_sec.html" %} {% include "partials/partnerships.html" %}
diff --git a/templates/partials/header_sec.html b/templates/partials/header_sec.html new file mode 100644 index 000000000..951d1a5d7 --- /dev/null +++ b/templates/partials/header_sec.html @@ -0,0 +1,66 @@ +{% set home = get_section(path="home/_index.md") %} + + +{% if current_path == '/' %} + +
+
+

+ {{ home.title }} + {{ home.extra.subtitle }} +

+ +

{{ home.extra.slogan }}

+
{{ home.content | safe }}
+ {% if home.extra.button %} + {% if home.extra.link is containing('http')%} + {{ home.extra.button }} + {% else %} + {{ home.extra.button }} + {% endif %} + {% endif %} +
+ {% set url = get_url(path='/' ~ home.relative_path | + replace(from='_index.md', to=home.extra.imgPath)) %} + +
+ +{% endif %} \ No newline at end of file