diff --git a/content/home/_index.md b/content/home/_index.md new file mode 100644 index 000000000..a43017c65 --- /dev/null +++ b/content/home/_index.md @@ -0,0 +1,3 @@ +--- +template: "index.html" +--- diff --git a/content/home/partenerships/_index.md b/content/home/partenerships/_index.md new file mode 100644 index 000000000..f56bb7bd8 --- /dev/null +++ b/content/home/partenerships/_index.md @@ -0,0 +1,3 @@ +--- +transparent: true +--- diff --git a/content/home/partenerships/partner1/become_farmer_new.jpg b/content/home/partenerships/partner1/become_farmer_new.jpg new file mode 100644 index 000000000..40a4aec61 Binary files /dev/null and b/content/home/partenerships/partner1/become_farmer_new.jpg differ diff --git a/content/home/partenerships/partner1/index.md b/content/home/partenerships/partner1/index.md new file mode 100644 index 000000000..10da65454 --- /dev/null +++ b/content/home/partenerships/partner1/index.md @@ -0,0 +1,11 @@ +--- +title: "Expand the People’s Internet" + +extra: + subtitle: "and earn TFT" + button: Become a Farmer + link: /farm + imgPath: become_farmer_new.jpg +--- + +By connecting hardware at your home or office, support the growth of a decentralized Internet and earn a new digital currency, TFT. diff --git a/content/home/partenerships/partner2/index.md b/content/home/partenerships/partner2/index.md new file mode 100644 index 000000000..a7078f1ed --- /dev/null +++ b/content/home/partenerships/partner2/index.md @@ -0,0 +1,11 @@ +--- +title: DECENTRALIZE YOUR + +extra: + subtitle: "DATA AND WORKLOADS" + imgPath: network_new.jpg + button: Deploy + link: /cloud +--- + +Companies and developers have already started using ThreeFold for it’s autonomous, decentralization and privacy features. diff --git a/content/home/partenerships/partner2/network_new.jpg b/content/home/partenerships/partner2/network_new.jpg new file mode 100644 index 000000000..119e0c923 Binary files /dev/null and b/content/home/partenerships/partner2/network_new.jpg differ diff --git a/static/images/become_farmer_new.jpg b/static/images/become_farmer_new.jpg index 426bc77c0..40a4aec61 100644 Binary files a/static/images/become_farmer_new.jpg and b/static/images/become_farmer_new.jpg differ diff --git a/static/images/network_new.jpg b/static/images/network_new.jpg deleted file mode 100644 index d3348ac8a..000000000 Binary files a/static/images/network_new.jpg and /dev/null differ diff --git a/templates/index.html b/templates/index.html index 24ba5b74c..07cff67a1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,8 +1,19 @@ {% extends "_default/base.html" %} {% block content %} - +
- {{section.content | safe}} +
+ + {% include "partials/partnerships.html" %} +
{% endblock content %} \ No newline at end of file diff --git a/templates/partials/header.html b/templates/partials/header.html index 0b7a5934a..a424be16e 100644 --- a/templates/partials/header.html +++ b/templates/partials/header.html @@ -1,15 +1,13 @@ {%- set section = get_section(path="header/_index.md") %} {% set header_items = section.content | safe | split(pat="
  • ") %} -{% set base = config.base_url %} -{% set logo_path = base ~ '/' ~ section.extra.logoPath %}
    @@ -40,13 +38,8 @@ {{link_label}} - {% elif base is containing("www_threefold_io") %} - {% set path = base ~ link_path[1] %} - - {{link_label}} - {% else %} - + {{link_label}} {% endif %} @@ -110,9 +103,8 @@
    - {% set btn_path = base ~ section.extra.button_Path %} {{link_label}} - {% elif base is containing("www_threefold_io") %} - {% set path = base ~ link_path[1] %} - - {{link_label}} - {% else %} - + {{link_label}} {% endif %} @@ -203,7 +190,7 @@ {%- set logoPath = section.extra.logoPath %}
    - Company name + Company name

    {{section.description}}

    diff --git a/templates/partials/partnerships.html b/templates/partials/partnerships.html new file mode 100644 index 000000000..28b89f716 --- /dev/null +++ b/templates/partials/partnerships.html @@ -0,0 +1,77 @@ +{% set home = get_section(path="home/_index.md") %} + + + +{% if current_path == '/' %} + +
    +
    +
    + {% for page in home.pages %} +
    +
    +
    +

    + {{ page.title }} + {{ page.extra.subtitle }} +

    +
    {{ page.content | safe }}
    +
    + {% if page.extra.button %} +
    + {% if page.extra.button is containing('http') %} + {{ page.extra.button }} + {% else %} + {{ page.extra.button }} + {% endif %} +
    + {% endif %} +
    + {% set url = get_url(path='/' ~ page.relative_path | + replace(from='index.md', to=page.extra.imgPath)) %} + + +
    + {% endfor %} +
    +
    +
    +{% endif %} \ No newline at end of file diff --git a/templates/shortcodes/button.html b/templates/shortcodes/button.html index c8ae80e03..ad8ef374d 100644 --- a/templates/shortcodes/button.html +++ b/templates/shortcodes/button.html @@ -1,5 +1,3 @@ -{% set base = config.base_url %} - {% set path = body | split(pat="href=") | slice(start=1) | first | split(pat=">") | first | trim_start_matches(pat='"') | trim_end_matches(pat='"') %} @@ -9,22 +7,8 @@ {{ body | trim_start_matches(pat="

    ") | safe}} -{% elif base is containing("www_threefold_io") %} -{% set btn_path = base ~ path %} - - -{% elif path is starting_with("/") %} -{% set btn_path = base ~ path %} - - {% else %} -