You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ul...@apache.org on 2022/02/23 07:13:30 UTC

[incubator-kyuubi-website] branch master updated: Fix ASF Events (#37)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 08b72ce  Fix ASF Events (#37)
08b72ce is described below

commit 08b72ce800a8460b2b671676a770d0075f118605
Author: Kent Yao <ya...@apache.org>
AuthorDate: Wed Feb 23 15:10:23 2022 +0800

    Fix ASF Events (#37)
---
 config.toml                  | 23 ++++++++++++++---------
 layouts/index.html           | 17 ++++++++++++++---
 layouts/partials/header.html |  2 +-
 3 files changed, 29 insertions(+), 13 deletions(-)

diff --git a/config.toml b/config.toml
index 9c30065..4ffd596 100644
--- a/config.toml
+++ b/config.toml
@@ -49,34 +49,39 @@ publishDir = "content"
    weight = 4
 
 [[menu.main]]
-   name = "Help"
-   identifier = "help"
+   name = "ASF"
+   identifier = "asf"
    weight = 5
 
 [[menu.main]]
-   name = "Apache Licenses"
+   name = "Foundation"
+   url = "https://www.apache.org/"
+   parent = "asf"
+
+[[menu.main]]
+   name = "License"
    url = "https://www.apache.org/licenses/"
-   parent = "help"
+   parent = "asf"
 
 [[menu.main]]
    name = "Events"
-   url = "https://apachecon.com/?ref=www.apache.org"
-   parent = "help"
+   url = "https://www.apache.org/events/current-event"
+   parent = "asf"
 
 [[menu.main]]
    name = "Security"
    url = "https://www.apache.org/security/"
-   parent = "help"
+   parent = "asf"
 
 [[menu.main]]
    name = "Sponsorship"
    url = "https://www.apache.org/foundation/sponsorship.html"
-   parent = "help"
+   parent = "asf"
 
 [[menu.main]]
    name = "Thanks"
    url = "https://www.apache.org/foundation/thanks.html"
-   parent = "help"
+   parent = "asf"
 
 
 # Configure the English version of the website.
diff --git a/layouts/index.html b/layouts/index.html
index 7e82c63..e2ce076 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -27,12 +27,19 @@
       </div>
     </div>
 
+
     <div class="container">
       <!-- Example row of columns -->
       <div class="row">
+
         <div class="col-md-4">
-          <h2>Latest news</h2>
-            <div class="col-md-12">
+
+          <div class="col-md-12">
+            <p><a class="acevent" data-format="wide" data-mode="light" data-width="320"></a></p>
+          </div>
+
+          <div class="col-md-12">
+            <h2>Latest news</h2>
             {{range first 5 (where (where .Site.Pages "Section" "in" (slice "news")) ".Name" "not in" (slice "News" "Releases")) }}
             <div class="panel panel-default">
                <div class="panel-heading clearfix"><a class="pull-left" href={{.RelPermalink}}>{{.Title}}</a> <small class="pull-right">{{dateFormat "2006 Jan 2 " .Date}}</small></div>
@@ -41,10 +48,14 @@
                </div>
               </div>
             {{end}}
+          </div>
+
+          <div class="col-md-12">
+            <h2>Archives</h2>
             <p><a class="next" href="/release.html">Release archive &rarr;</a></p>
             <p><a class="next" href="/news.html">News archive &rarr;</a></p>
           </div>
-       </div>
+        </div>
       <div class="col-md-8">
           {{range where .Site.Pages "Title" "Kyuubi Usage"}}
           <h2>{{.Title}}</h2>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index ced1c53..9409c61 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -30,7 +30,7 @@
     <!-- Optional theme -->
     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
     <link rel="stylesheet" href="{{ "css/kyuubi.css" | relURL }}">
-
+    <script src="https://www.apachecon.com/event-images/snippet.js"></script>
     <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
     <!--[if lt IE 9]>
       <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>