You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2021/09/03 07:18:45 UTC

[echarts-www] branch master updated: fix links

This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-www.git


The following commit(s) were added to refs/heads/master by this push:
     new c9eb265  fix links
c9eb265 is described below

commit c9eb265ce51c5846d57929e1e442b5b95ee3da8e
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Fri Sep 3 15:18:09 2021 +0800

    fix links
---
 _jade/en/index.jade          |  6 +++---
 _jade/layouts/basic.jade     |  2 +-
 _jade/manually-redirect.jade |  2 +-
 _jade/zh/index.jade          |  4 ++--
 _scss/main.scss              | 10 +++++-----
 5 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/_jade/en/index.jade b/_jade/en/index.jade
index bdf20d6..2540c1a 100644
--- a/_jade/en/index.jade
+++ b/_jade/en/index.jade
@@ -20,10 +20,10 @@ block content
                         .home-brand Apache ECharts
                         .home-subtitle An Open Source JavaScript Visualization Library
                         .home-btn-panel
-                            a.btn.btn-main.btn-index-home(href='#{host}/en/tutorial.html#Get%20Started%20with%20ECharts%20in%205%20minutes')
+                            a.btn.btn-main.btn-index-home(href='#{host}/handbook/#{ecWWWLang}/get-started')
                                 include ../components/svg/index-learn
                                 span Get Started
-                            a.btn.btn-main.btn-index-home(href='#{host}/examples/en/index.html')
+                            a.btn.btn-main.btn-index-home(href='#{host}/examples/#{ecWWWLang}/index.html')
                                 include ../components/svg/index-example
                                 span Demo
                             a.btn.btn-main.btn-index-home.btn-index-github(href='https://github.com/apache/echarts', target='_blank')
@@ -45,7 +45,7 @@ block content
                     .index-features
                         h2.reveal Features
                         hr.reveal
-                        a.more.reveal(href='#{host}/en/feature.html') View More
+                        a.more.reveal(href='#{host}/#{ecWWWLang}/feature.html') View More
                     .row
                         .col-md-6
                             .index-feature#index-feature-1
diff --git a/_jade/layouts/basic.jade b/_jade/layouts/basic.jade
index 9a0b7b1..33b3f96 100644
--- a/_jade/layouts/basic.jade
+++ b/_jade/layouts/basic.jade
@@ -62,7 +62,7 @@ html(lang='#{htmlAttrLang}')
         .txt
             if ecWWWLang == 'en'
                 p Please visit the official Apache ECharts Website at
-                a(id="a2", href="https://echarts.apache.org/zh/index.html") https://echarts.apache.org
+                a(id="a2", href="https://echarts.apache.org/en/index.html") https://echarts.apache.org
             else
                 p 请访问 Apache ECharts 的官网 &nbsp;
                 a(id="a1", href="https://echarts.apache.org/zh/index.html") https://echarts.apache.org
diff --git a/_jade/manually-redirect.jade b/_jade/manually-redirect.jade
index f34b0a0..a6b58ef 100644
--- a/_jade/manually-redirect.jade
+++ b/_jade/manually-redirect.jade
@@ -28,7 +28,7 @@ body
                 a(id="a1", href="https://echarts.apache.org/zh/index.html") https://echarts.apache.org
             div
                 span Please visit the official Apache ECharts Website at
-                a(id="a2", href="https://echarts.apache.org/zh/index.html") https://echarts.apache.org
+                a(id="a2", href="https://echarts.apache.org/en/index.html") https://echarts.apache.org
     script(type="text/javascript").
         document.getElementById('a1').setAttribute('href', 'https://echarts.apache.org/zh/index.html'+((!location.pathname||location.pathname==='/')?'':location.pathname+(!location.search?'':location.search)+(!location.hash?'':location.hash)));
         document.getElementById('a2').setAttribute('href', document.getElementById('a1').getAttribute('href'));
diff --git a/_jade/zh/index.jade b/_jade/zh/index.jade
index b44676a..a2e4c60 100644
--- a/_jade/zh/index.jade
+++ b/_jade/zh/index.jade
@@ -19,10 +19,10 @@ block content
                         .home-brand Apache ECharts
                         .home-subtitle 一个基于 JavaScript 的开源可视化图表库
                         .home-btn-panel
-                            a.btn.btn-main.btn-index-home(href='#{host}/tutorial.html#5%20分钟上手%20ECharts')
+                            a.btn.btn-main.btn-index-home(href='#{host}/handbook/#{ecWWWLang}/get-started')
                                 include ../components/svg/index-learn
                                 span 快速入门
-                            a.btn.btn-main.btn-index-home(href='#{host}/examples/zh/index.html')
+                            a.btn.btn-main.btn-index-home(href='#{host}/examples/#{ecWWWLang}/index.html')
                                 include ../components/svg/index-example
                                 span 所有示例
                             a.btn.btn-main.btn-index-home.btn-index-github(href='https://github.com/apache/echarts', target='_blank')
diff --git a/_scss/main.scss b/_scss/main.scss
index ae28ef6..a56e07d 100644
--- a/_scss/main.scss
+++ b/_scss/main.scss
@@ -143,16 +143,16 @@ body {
         width: 80%;
         height: 100%;
         display: inline-block;
-    }
 
         p {
             margin: 5px 0;
+        }
 
-            a {
-                color: #fff;
-                text-decoration: underline;
-            }
+        a {
+            color: #fff;
+            text-decoration: underline;
         }
+    }
 
     .btn {
         position: relative;

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org