You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2018/08/23 12:21:09 UTC

[incubator-plc4x] branch master updated: - Updated the site generation to not only output an image of the next apache event, but also a link to the page.

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

cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/master by this push:
     new d430446  - Updated the site generation to not only output an image of the next apache event, but also a link to the page.
d430446 is described below

commit d4304466fcfcf5e4dc88480441c093c76dc6e7d8
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Aug 23 14:21:06 2018 +0200

    - Updated the site generation to not only output an image of the next apache event, but also a link to the page.
---
 src/site/resources/css/site.css | 4 ++--
 src/site/site.xml               | 8 ++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/site/resources/css/site.css b/src/site/resources/css/site.css
index 2bb252a..1eedee8 100644
--- a/src/site/resources/css/site.css
+++ b/src/site/resources/css/site.css
@@ -60,9 +60,9 @@ under the License.
     width: 400px;
 }
 
-#bannerRight:after {
-    content: url("https://www.apache.org/events/current-event-234x60.png");
+#apacheEvents {
     position: relative;
+    width: 234px;
     top: 20px;
     left: 83px
 }
diff --git a/src/site/site.xml b/src/site/site.xml
index ab0258f..8c7d230 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -85,6 +85,14 @@
 
   <body>
     <head>
+      <![CDATA[
+        <script>
+          /* Add an image for promoting Apache events below the right banner */
+          document.addEventListener("DOMContentLoaded", function(event) {
+            $("#bannerRight").append('<p id="apacheEvents"><a href="//www.apache.org/events/current-event.html"><img src="//www.apache.org/events/current-event-234x60.png"/></a></p>');
+          });
+        </script>
+      ]]>
     </head>
 
     <menu name="Community">