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

technoboy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b88932  Add download button. (#1478)
6b88932 is described below

commit 6b88932333b6fa1178eebe9201c866f58ef0e607
Author: CaymanHK <[email protected]>
AuthorDate: Tue Sep 22 14:07:12 2020 +0800

    Add download button. (#1478)
---
 docs/themes/hugo-theme-learn/layouts/partials/menu.html | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/docs/themes/hugo-theme-learn/layouts/partials/menu.html 
b/docs/themes/hugo-theme-learn/layouts/partials/menu.html
index dcd92e0..0f2b5cb 100644
--- a/docs/themes/hugo-theme-learn/layouts/partials/menu.html
+++ b/docs/themes/hugo-theme-learn/layouts/partials/menu.html
@@ -84,6 +84,18 @@
       </ul>
     </section>
     {{ end }}
+
+    <!-- download button -->
+    <hr />
+    {{ if eq .Lang "en"}}
+      <a class="padding" 
href="{{"https://shardingsphere.apache.org/pdf/shardingsphere-elasticjob_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/shardingsphere-elasticjob_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" . }}
     </section>

Reply via email to