Skip to content

Commit

Permalink
List latest release on index.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-jumper committed Dec 30, 2016
1 parent 2ad166b commit 6d66e8e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions index.html
Expand Up @@ -30,6 +30,13 @@

</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">
Expand Down
15 changes: 13 additions & 2 deletions styles/main.css
Expand Up @@ -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;
}

Expand Down Expand Up @@ -245,7 +255,8 @@ p {
padding-right: 0.25in;
}

#content .hook {
#content .hook,
#content .latest-release {
margin: 0;
width: 100%;
}
Expand Down

0 comments on commit 6d66e8e

Please sign in to comment.