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

bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 08c611f  Add 'current events' to left menu as per 
http://apache.org/events/README.txt
08c611f is described below

commit 08c611fd5ad3725e65daf805da5a84f0e3f0dad7
Author: Bertrand Delacretaz <bdelacre...@apache.org>
AuthorDate: Tue Apr 10 15:08:10 2018 +0200

    Add 'current events' to left menu as per http://apache.org/events/README.txt
---
 src/main/jbake/assets/res/css/site.css |  6 ++++++
 src/main/jbake/templates/menu.tpl      | 10 +++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/main/jbake/assets/res/css/site.css 
b/src/main/jbake/assets/res/css/site.css
index 3dae73e..be85974 100644
--- a/src/main/jbake/assets/res/css/site.css
+++ b/src/main/jbake/assets/res/css/site.css
@@ -146,6 +146,12 @@ img {
     color: #4a4a43
 }
 
+.menu img {
+    display: block;
+    margin-left: auto;
+    margin-right: auto;
+}
+
 .main {
     position: absolute;
     border-top: 10px solid #cde0ea;
diff --git a/src/main/jbake/templates/menu.tpl 
b/src/main/jbake/templates/menu.tpl
index f11bd3c..d50d299 100644
--- a/src/main/jbake/templates/menu.tpl
+++ b/src/main/jbake/templates/menu.tpl
@@ -52,12 +52,20 @@ div(class:"menu"){
                a(href:"http://www.apache.org/foundation/thanks.html";, 
"Thanks!") br() newLine()
                a(href:"http://www.apache.org/foundation/sponsorship.html";, 
"Become a Sponsor") br() newLine()
                a(href:"http://www.apache.org/foundation/buy_stuff.html";, "Buy 
Stuff") br() newLine()  
+        a(href:"https://www.apache.org/events/current-event.html";) {
+            img(
+                border:"0",
+                alt:"Current ASF Events",
+                src:"https://www.apache.org/events/current-event-125x125.png";,
+                width:"125px"
+            )
+        }
         a(href:"http://apache.org/foundation/contributing.html";) {
             img(
                 border:"0", 
                 alt:"Support the Apache Software Foundation!", 
                 
src:"${config.site_contextPath}res/images/SupportApache-small.png",
-                width:"115px"
+                width:"125px"
             )
         }
        }

-- 
To stop receiving notification emails like this one, please contact
bdelacre...@apache.org.

Reply via email to