Skip to content

Commit

Permalink
adds basic downloads page (valkey-io#26)
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle J. Davis <kyledvs@amazon.com>
(cherry picked from commit 7ec8323)
  • Loading branch information
stockholmux authored and AMoo-Miki committed Apr 11, 2024
1 parent 207371f commit f2bf56a
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 1 deletion.
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@ defaults:
values:
layout: "author"
permalink: /:collection/:name/
-
scope:
path: ""
type: "releases"
values:
layout: "release"
permalink: download/:collection/:name

collections:
authors:
output: true
releases:
output: true

paginate: 5
paginate_path: "/blog/page:num/"
Expand Down
8 changes: 8 additions & 0 deletions _includes/release.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<strong>Release Date:</strong> {{include.content.date | date: "%a, %b %d, %Y"}}<br/>
<strong>GitHub Release:</strong> <a href="https://github.com/valkey-io/valkey/releases/tag/{{include.content.tag}}">{{include.content.tag}}</a><br />
<strong>Docker Tags:</strong>
<ul>
{% for tag in include.content.container.tags %}
<li><code>{{ tag }}</code></li>
{% endfor %}
</ul>
14 changes: 14 additions & 0 deletions _layouts/release.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: default
---
{% capture primary_title %}Release: <strong>{{page.name}}</strong>{% endcapture %}
{% assign this_release = page %}
{% include page_title.html %}



<div class="width-limiter">
<main class="container">
{% include release.html content=this_release %}
</main>
</div>
14 changes: 14 additions & 0 deletions _releases/v7-2-4-rc1.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: "7.2.4-rc1"
date: 2024-04-09
tag: "7.2.4-rc1"
container:
tags:
- "7.2.4-rc1"
- "7.2.4-rc1-bookworm"
- "7.2.4-rc1-alpine"
- "7.2.4-rc1-alpine3.19"

---

Hello world!
5 changes: 4 additions & 1 deletion download/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
layout: simple
primary_title: Download
title: Download
---
---
{% assign current_release= site.releases | first %}

{% include release.html content=current_release %}

0 comments on commit f2bf56a

Please sign in to comment.