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

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 65f61d7  added downloads button on Home page
65f61d7 is described below

commit 65f61d720d06388fe7712460e398d0ecb5e27673
Author: juzhiyuan <jjzhiy...@gmail.com>
AuthorDate: Sat Nov 30 11:18:43 2019 +0800

    added downloads button on Home page
---
 config.yaml                     | 4 ++++
 layouts/partials/hero-body.html | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/config.yaml b/config.yaml
index df88f42..a468486 100644
--- a/config.yaml
+++ b/config.yaml
@@ -21,6 +21,8 @@ languages:
         buttontext: View on GitHub
         # Where the main hero button links to
         buttonlink: "https://github.com/apache/incubator-apisix";
+        downloadsButtonText: Downloads
+        downloadsButtonLink: "./downloads"
         # Hero image (from static/images/___)
         image: illustrations/worker.svg
         # Footer logos (from static/images/logos/clients/___.svg)
@@ -97,6 +99,8 @@ languages:
       buttontext: 访问 GitHub
       # Where the main hero button links to
       buttonlink: "https://github.com/apache/incubator-apisix";
+      downloadsbuttontext: 下载
+      downloadsbuttonlink: "../downloads"
       # Hero image (from static/images/___)
       image: illustrations/worker.svg
       # Footer logos (from static/images/logos/clients/___.svg)
diff --git a/layouts/partials/hero-body.html b/layouts/partials/hero-body.html
index ba1fe0f..0ae585b 100644
--- a/layouts/partials/hero-body.html
+++ b/layouts/partials/hero-body.html
@@ -4,6 +4,8 @@
 {{- $subtitle2   := index $hero "subtitle2" }}
 {{- $buttonText := index $hero "buttontext" }}
 {{- $buttonLink := index $hero "buttonlink" }}
+{{- $downloadsButtonText := index $hero "downloadsbuttontext" }}
+{{- $downloadsButtonLink := index $hero "downloadsbuttonlink" }}
 {{- $image      := index $hero "image" }}
 <div class="hero-body">
   <div class="container">
@@ -29,6 +31,9 @@
           <a class="button cta rounded primary-btn raised" href="{{ 
$buttonLink }}">
             {{ $buttonText }}
           </a>
+          <a class="button cta rounded primary-btn raised" href="{{ 
$downloadsButtonLink }}">
+            {{ $downloadsButtonText }}
+          </a>
         </p>
       </div>
     </div>

Reply via email to