Merge branch '3.10.0' of github.com:threefoldfoundation/www_threefold_io into 3.10.0

This commit is contained in:
samaradel
2023-06-13 15:17:04 +03:00
13 changed files with 12 additions and 56 deletions

View File

@@ -1,17 +0,0 @@
# On every push this script is executed
on: push
name: Build and deploy GH Pages
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/development'
steps:
- name: checkout
uses: actions/checkout@v2
- name: build_and_deploy
uses: shalzz/zola-deploy-action@v0.14.1
env:
# Target branch
PAGES_BRANCH: gh-pages
# Provide personal access token
TOKEN: ${{ secrets.TOKEN }}

View File

@@ -1,26 +0,0 @@
name: Threefold_io
on:
push:
branch: [ development ]
jobs:
job_one:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: pushing latest change on www2.threefold.io
uses: appleboy/ssh-action@master
with:
host: www2.threefold.io
username: root
key: ${{ secrets.TF_SECRET }}
port: 22
script: |
cd /opt/www_threefold_io/
git log -1
git restore config.toml
git restore static/css/index.css
git pull
sed -i "s/https:\/\/threefoldfoundation.github.io\/www_threefold_io/https:\/\/www2.threefold.io/g" config.toml
./build.sh

View File

@@ -12,13 +12,13 @@ jobs:
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master
with: with:
host: www3.threefold.io host: www3.threefold.io
username: root username: webuser
key: ${{ secrets.TF_SECRET }} key: ${{ secrets.TF_SECRET }}
port: 22 port: 34022
script: | script: |
cd /opt/www3/www_threefold_io/ cd websites/www3/www_threefold_io/
git log -1 git log -1
git restore . git restore .
git pull git pull
sed -i "s/https:\/\/www.threefold.io/https:\/\/www3.threefold.io/g" config.toml sed -i "s/https:\/\/www.threefold.io/https:\/\/www3.threefold.io/g" config.toml
./build.sh bash build.sh

View File

@@ -1,6 +1,6 @@
# The URL the site will be built for # The URL the site will be built for
base_url = "https://www3.threefold.io" base_url = "https://www3.threefold.io"
# Change this to your own URL! Please note this variable **must** be uncommented. # Change this to your own URL! Please note this variable **must** be uncommented .
title = "ThreeFold" title = "ThreeFold"
description="Our global digital backbone" description="Our global digital backbone"

BIN
content/BG_wide.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View File

@@ -1,5 +1,5 @@
--- ---
title: "Buildnew" title: "Build"
template: "page.html" template: "page.html"
insert_anchor_links: "left" insert_anchor_links: "left"
--- ---

View File

@@ -1,5 +1,5 @@
--- ---
title: "Farmnew" title: "Expand"
template: "page.html" template: "page.html"
insert_anchor_links: "left" insert_anchor_links: "left"
--- ---

BIN
content/header_about.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 KiB

BIN
content/header_build.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 KiB

BIN
content/header_token.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

BIN
content/togethericon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 KiB

File diff suppressed because one or more lines are too long

View File

@@ -33,8 +33,8 @@
{% set header_label = header_arr[0] %} {% set header_label = header_arr[0] %}
{% if '<a' in header_label %} {% if '<a' in header_label %}
{% set link_label = header_label | striptags %} {% set link_label = header_label | striptags %}
{% set link_path = header_label | split(pat="%22") | safe%} {% set link_path = header_label | split(pat="%22")
{% set current = get_url(path=link_path[1]) ~ "/" %} {% set current = get_url(path=link_path[1]) ~ "/" %} | safe%}
{% if header_label is containing("http") %} {% if header_label is containing("http") %}
{% if header_label is not containing("threefold") %} {% if header_label is not containing("threefold") %}
<a href="{{link_path[1]}}" target="_blank" class="text-lg leading-6 font-medium text-gray-900 hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0"> <a href="{{link_path[1]}}" target="_blank" class="text-lg leading-6 font-medium text-gray-900 hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
@@ -42,16 +42,15 @@
</a> </a>
{% endif %} {% endif %}
{% elif current == current_url %} {% elif current == current_url %}
<a href="{{ get_url(path=link_path[1])}}" class="text-lg leading-6 font-medium active hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0"> <a href="{{ get_url(path=link_path[1])}}" class="text-lg leading-6 font-medium active hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
{{ link_label }} {{ link_label }}
</a> </a>
{% else %} {% else %}
<a href="{{ get_url(path=link_path[1])}}" class="text-lg leading-6 font-medium text-gray-900 hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0"> <a href="{{ get_url(path=link_path[1])}}" class="text-lg leading-6 font-medium text-gray-900 hover:text-gray-500 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
{{ link_label }} {{link_label}}
</a> </a>
{% endif %} {% endif %}
{% else %} {% else %}
<div class="relative"> <div class="relative">