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

feiwang 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 4a4a802  Moving Powered by Kyuubi to separate page (#84)
4a4a802 is described below

commit 4a4a80207114ddc90f0ea9f1d80d630a4851e215
Author: Fei Wang <[email protected]>
AuthorDate: Thu Oct 13 12:27:59 2022 +0800

    Moving Powered by Kyuubi to separate page (#84)
---
 config.toml                     |  9 +++++++--
 layouts/custompage/powered.html | 32 ++++++++++++++++++++++++++++++++
 layouts/index.html              | 17 -----------------
 src/en/powered_by.md            | 19 +++++++++++++++++++
 src/zh/powered_by.md            | 19 +++++++++++++++++++
 5 files changed, 77 insertions(+), 19 deletions(-)

diff --git a/config.toml b/config.toml
index cebd198..2b9f0a0 100644
--- a/config.toml
+++ b/config.toml
@@ -61,16 +61,21 @@ defaultContentLanguage = 'en'
   identifier = "development"
   weight = 4
 
+[[menu.main]]
+  name = "Powered by Kyuubi"
+  url = "powered_by.html"
+  weight = 5
+
 [[menu.main]]
   name = "Github"
   identifier = "github"
   url = "https://github.com/apache/incubator-kyuubi";
-  weight = 5
+  weight = 6
 
 [[menu.main]]
   name = "ASF"
   identifier = "asf"
-  weight = 6
+  weight = 7
 
 [[menu.main]]
   name = "Foundation"
diff --git a/layouts/custompage/powered.html b/layouts/custompage/powered.html
new file mode 100644
index 0000000..907fcc2
--- /dev/null
+++ b/layouts/custompage/powered.html
@@ -0,0 +1,32 @@
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License. See accompanying LICENSE file.
+-->
+{{partial "header.html" .}}
+<div>
+    <div class="contentBlock">
+        <div class="blockTitle">
+            <span>{{ i18n "powered-by-kyuubi"}}</span>
+            <div class="blockTitleLine"></div>
+            <div class="blockTitleDesc">
+                {{i18n "powered-desc"}}
+                <a class="titleDescLink" href="{{i18n "powered-href"}}">{{i18n 
"powered-website"}}</a>
+            </div>
+        </div>
+        <div class="poweredListContainer">
+            {{range .Site.Data.homePage.powered}}
+            <img src="{{. | relURL}}" />
+            {{end}}
+        </div>
+    </div>
+</div>
+{{partial "footer.html" .}}
diff --git a/layouts/index.html b/layouts/index.html
index 6c108fd..39455fb 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -131,23 +131,6 @@
       </div>
     </div>
   </div>
-  <div>
-    <div class="contentBlock">
-      <div class="blockTitle">
-        <span>{{ i18n "powered-by-kyuubi"}}</span>
-        <div class="blockTitleLine"></div>
-        <div class="blockTitleDesc">
-          {{i18n "powered-desc"}}
-          <a class="titleDescLink" href="{{i18n "powered-href"}}">{{i18n 
"powered-website"}}</a>
-        </div>
-      </div>
-      <div class="poweredListContainer">
-        {{range .Site.Data.homePage.powered}}
-          <img src="{{. | relURL}}" />
-        {{end}}
-      </div>
-    </div>
-  </div>
 </div>
 <script>
 var ecos = document.getElementById('ecos')
diff --git a/src/en/powered_by.md b/src/en/powered_by.md
new file mode 100644
index 0000000..7d6cf3e
--- /dev/null
+++ b/src/en/powered_by.md
@@ -0,0 +1,19 @@
+---
+title: "Powered by Kyuubi"
+menu: "po"
+layout: powered
+type: custompage
+---
+<!---
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License. See accompanying LICENSE file.
+-->
diff --git a/src/zh/powered_by.md b/src/zh/powered_by.md
new file mode 100644
index 0000000..7d6cf3e
--- /dev/null
+++ b/src/zh/powered_by.md
@@ -0,0 +1,19 @@
+---
+title: "Powered by Kyuubi"
+menu: "po"
+layout: powered
+type: custompage
+---
+<!---
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License. See accompanying LICENSE file.
+-->

Reply via email to