You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/08/09 08:44:21 UTC

[shardingsphere] branch master updated: add download button by Cayman (#6738)

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 <55...@users.noreply.github.com>
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>&nbsp;Download PDF&nbsp;&nbsp;👈&nbsp; 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>&nbsp;Download PDF&nbsp;&nbsp;<!-- &nbsp; 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>&nbsp;下载PDF文档&nbsp;&nbsp;<!-- &nbsp; is a placeholder -->
+    {{end}}
+    </a>
     
     <section id="footer">
       {{ partial "menu-footer.html" . }}