You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2020/11/18 04:22:54 UTC
[dubbo-website] branch master updated: update apache menu, and 404
This is an automated email from the ASF dual-hosted git repository.
iluo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-website.git
The following commit(s) were added to refs/heads/master by this push:
new 7b6c318 update apache menu, and 404
7b6c318 is described below
commit 7b6c3180c8d2304818caad7354992c212d6aa562
Author: beiwei.ly <be...@alibaba-inc.com>
AuthorDate: Wed Nov 18 12:22:31 2020 +0800
update apache menu, and 404
---
assets/scss/_styles_project.scss | 26 +++++++++++++++++
content/en/blog/news/dubbo-101.md | 1 +
content/zh/blog/news/dubbo-101.md | 1 +
layouts/404.html | 41 +++++++++++++++++++++++++++
layouts/partials/footer.html | 59 +++++++++++++++++++++++++++++++++++++++
5 files changed, 128 insertions(+)
diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss
new file mode 100644
index 0000000..e9c7505
--- /dev/null
+++ b/assets/scss/_styles_project.scss
@@ -0,0 +1,26 @@
+/*
+
+Nothing defined here. The Hugo project that uses this theme can override Bootstrap by adding a file to:
+
+assets/scss/_styles_project.scss
+
+*/
+
+#my-footer ul {
+ list-style: none;
+ margin-left: 50px;
+ display: inline;
+ font-size: 0.8em;
+}
+
+#my-footer li {
+ display: inline;
+ margin-left: 10px;
+ line-height: 40px;
+ float:left
+}
+
+#my-footer img {
+ max-width: 6rem;
+ max-height: 2.5rem;
+}
diff --git a/content/en/blog/news/dubbo-101.md b/content/en/blog/news/dubbo-101.md
index 32cf4e2..f556e89 100644
--- a/content/en/blog/news/dubbo-101.md
+++ b/content/en/blog/news/dubbo-101.md
@@ -2,6 +2,7 @@
title: "Your First Dubbo Demo"
linkTitle: "Your First Dubbo Demo"
date: 2018-08-07
+slug: dubbo-101
description: >
Modern distributed frameworks is similiar to RMI in terms of concepts. They both use Java interface as a service contract, archive service registry and discovery by a registry center, and Shield communication details by a proxy.
---
diff --git a/content/zh/blog/news/dubbo-101.md b/content/zh/blog/news/dubbo-101.md
index 3d40202..ece9ace 100644
--- a/content/zh/blog/news/dubbo-101.md
+++ b/content/zh/blog/news/dubbo-101.md
@@ -1,6 +1,7 @@
---
title: "第一个 Dubbo 应用"
linkTitle: "第一个 Dubbo 应用"
+slug: dubbo-101
date: 2018-08-07
description: >
现代的分布式服务框架的基本概念与 RMI 是类似的,同样是使用 Java 的 Interface 作为服务契约,通过注册中心来完成服务的注册和发现,远程通讯的细节也是通过代理类来屏蔽。
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..6473e73
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,41 @@
+{{ define "main"}}
+ <main id="main">
+ <div>
+ <h1 id="title">Not found</h1>
+ <p>Oops! aaa This page doesn't exist. Try going back to our <a href="{{ "/" | relURL }}">home page</a>.</p>
+ </div>
+ </main>
+
+<script>
+ var originalHref = window.location.href;
+ if (originalHref.indexOf("docs/user/") > -1) {
+ window.location.href = newHref("docs/user/", "docs/v2.7/user/");
+ } else if (originalHref.indexOf("docs/dev/") > -1) {
+ window.location.href = newHref("docs/dev/", "docs/v2.7/dev/");
+ } else if (originalHref.indexOf("docs/admin/") > -1) {
+ window.location.href = newHref("docs/admin/", "docs/v2.7/admin/");
+ } else if (originalHref.indexOf("docs/source_code_guide/") > -1) {
+ window.location.href = newHref("docs/source_code_guide/", "docs/v2.7/dev/source/");
+ } else if (originalHref.indexOf("docs/developers/") > -1) {
+ window.location.href = newHref("docs/developers/", "contribution-guidelines/");
+ } else if (originalHref.indexOf("blog/index.html") >-1) {
+ window.location.href = newHref("blog/index.html", "blog/2018/08/07/dubbo-101/");
+ } else {
+ // window.location.href = "http://dubbo.apache.org/en-us/";
+ }
+
+ function newHref(path, newPath) {
+ var idx = originalHref.indexOf(path);
+ var part1 = originalHref.substring(0, idx);
+ var part2 = "";
+ if (idx + path.length < originalHref.length -1) {
+ part2 = originalHref.substring(idx + path.length);
+ }
+ var newHref = part1 + newPath + part2;
+ if (newHref.endsWith('.html')) {
+ newHref = newHref.substr(0, newHref.length - 5) + "/";
+ }
+ return newHref;
+ }
+</script>
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..2c73173
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,59 @@
+{{ $links := .Site.Params.links }}
+<footer class="bg-dark py-5 row d-print-none">
+ <div class="container-fluid mx-sm-5">
+ <div class="row">
+ <div class="col-6 col-sm-4 text-xs-center order-sm-2">
+ {{ with $links }}
+ {{ with index . "user"}}
+ {{ template "footer-links-block" . }}
+ {{ end }}
+ {{ end }}
+ </div>
+ <div class="col-6 col-sm-4 text-right text-xs-center order-sm-3">
+ {{ with $links }}
+ {{ with index . "developer"}}
+ {{ template "footer-links-block" . }}
+ {{ end }}
+ {{ end }}
+ </div>
+ <div class="col-12 col-sm-4 text-center py-2 order-sm-2">
+ {{ with .Site.Params.copyright }}<small class="text-white">© {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</small>{{ end }}
+ {{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}" target="_blank">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
+ {{ if not .Site.Params.ui.footer_about_disable }}
+ {{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
+ {{ end }}
+ </div>
+ </div>
+ </div>
+</footer>
+
+<div class="row pt-2 pb-2">
+ <div class="container-fluid mx-sm-5">
+ <div class="text-center" id="my-footer">
+ <img style="float:left;" src="/imgs/apache_logo.png"/>
+ <ul>
+ <li><a href="http://www.apache.org">Foundation</a></li>
+ <li><a href="http://www.apache.org/licenses/">License</a></li>
+ <li><a href="https://www.apache.org/security/">Security</a></li>
+ <li><a href="http://www.apache.org/events/current-event">Events</a></li>
+ <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+ <li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+ </ul>
+ </div>
+ </div>
+</div>
+
+{{ define "footer-links-block" }}
+<ul class="list-inline mb-0">
+ {{ range . }}
+ <li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}" aria-label="{{ .name }}">
+ <a class="text-white" target="_blank" rel="noopener noreferrer" href="{{ .url }}">
+ <i class="{{ .icon }}"></i>
+ </a>
+ </li>
+ {{ end }}
+</ul>
+{{ end }}
+
+
+