List latest release on index.

Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/commit/6d66e8eb
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/tree/6d66e8eb
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/diff/6d66e8eb

Branch: refs/heads/master
Commit: 6d66e8eb9e59fc2d1f9f61746e52b4872baadadb
Parents: 2ad166b
Author: Michael Jumper <[email protected]>
Authored: Fri Dec 30 15:37:18 2016 -0800
Committer: Michael Jumper <[email protected]>
Committed: Fri Dec 30 15:37:18 2016 -0800

----------------------------------------------------------------------
 index.html      |  7 +++++++
 styles/main.css | 15 +++++++++++++--
 2 files changed, 20 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/6d66e8eb/index.html
----------------------------------------------------------------------
diff --git a/index.html b/index.html
index eb8193b..a9e799d 100644
--- a/index.html
+++ b/index.html
@@ -30,6 +30,13 @@ layout: default
 
 </div>
 
+<!-- Link to latest release -->
+<div class="latest-release">
+    {% assign latest = site.releases | where: 'released', 'true' | sort: 
'date'  | last %}
+    Latest release: <a href="{{ latest.url }}"
+       class="version">{{ latest.title }}</a> (released on {{ latest.date }})
+</div>
+
 <!-- List of features -->
 <ul class="features">
     <li class="html5">

http://git-wip-us.apache.org/repos/asf/incubator-guacamole-website/blob/6d66e8eb/styles/main.css
----------------------------------------------------------------------
diff --git a/styles/main.css b/styles/main.css
index 07c4448..b9c8ce0 100644
--- a/styles/main.css
+++ b/styles/main.css
@@ -141,7 +141,17 @@ ul.features li.commercially-supported::before {
     max-width: 40%;
 }
 
-.latest {
+.latest-release {
+    color: white;
+    background: #213121;
+    padding: 1em;
+    font-size: 0.8em;
+}
+
+.latest-release a[href].version,
+.latest-release a[href].version:visited {
+    color: white;
+    margin: 0.25em 0.5em;
     font-weight: bold;
 }
 
@@ -245,7 +255,8 @@ p {
     padding-right: 0.25in;
 }
 
-#content .hook {
+#content .hook,
+#content .latest-release {
     margin: 0;
     width: 100%;
 }

Reply via email to