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

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

commit e727af82b38afa43cb98ba9509f87f52617bcd72
Author: Fei Wang <[email protected]>
AuthorDate: Thu Oct 13 12:16:05 2022 +0800

    save
---
 config.toml                     |  9 +++++++--
 layouts/custompage/powered.html | 32 ++++++++++++++++++++++++++++++++
 layouts/index.html              | 34 +++++++++++++++++-----------------
 layouts/powered/single.html     | 24 ++++++++++++++++++++++++
 src/en/powered_by.md            | 19 +++++++++++++++++++
 src/zh/powered_by.md            | 19 +++++++++++++++++++
 6 files changed, 118 insertions(+), 19 deletions(-)

diff --git a/config.toml b/config.toml
index cebd198..21e3350 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..39a4454 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -131,23 +131,23 @@
       </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>-->
+<!--    <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/layouts/powered/single.html b/layouts/powered/single.html
new file mode 100644
index 0000000..d1fd615
--- /dev/null
+++ b/layouts/powered/single.html
@@ -0,0 +1,24 @@
+<!--
+ 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 class="container">
+  <div class="col-md-8">
+    <h1>{{.Title}}</h1>
+    {{.Content}}
+    <small>{{dateFormat "2006 Jan 2 " .Date}}</small>
+  </div>
+</div>
+
+{{partial "footer.html" .}}
diff --git a/src/en/powered_by.md b/src/en/powered_by.md
new file mode 100644
index 0000000..20bee53
--- /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..20bee53
--- /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