This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 870e7bc add download button by Cayman (#6738)
870e7bc is described below
commit 870e7bcb440ded15826b0dc5f4854bfe09c23c09
Author: CaymanHK <[email protected]>
AuthorDate: Sun Aug 9 16:44:08 2020 +0800
add download button by Cayman (#6738)
---
.../themes/hugo-theme-learn/layouts/partials/menu.html | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/docs/document/themes/hugo-theme-learn/layouts/partials/menu.html
b/docs/document/themes/hugo-theme-learn/layouts/partials/menu.html
index 2eb7745..6db31a3 100644
--- a/docs/document/themes/hugo-theme-learn/layouts/partials/menu.html
+++ b/docs/document/themes/hugo-theme-learn/layouts/partials/menu.html
@@ -86,10 +86,15 @@
{{ end }}
<!-- download button -->
- <!-- <hr /> -->
- <!-- <a class="padding" href=""> no link yet -->
- <!-- <i class="fa fa-fw fa-file-pdf-o" ></i> Download
PDF 👈 is a placeholder -->
- <!-- </a> -->
+ <hr />
+ {{ if eq .Lang "en"}}
+ <a class="padding"
href="{{"https://shardingsphere.apache.org/pdf/shadingsphere_docs_en.pdf" |
absURL}}">
+ <i class="fa fa-fw fa-file-pdf-o" ></i> Download
PDF <!-- is a placeholder -->
+ {{ else }}
+ <a class="padding"
href="{{"https://shardingsphere.apache.org/pdf/shadingsphere_docs_cn.pdf" |
absURL}}">
+ <i class="fa fa-fw fa-file-pdf-o" ></i> 下载PDF文档 <!--
is a placeholder -->
+ {{end}}
+ </a>
<section id="footer">
{{ partial "menu-footer.html" . }}