Skip to content

Commit

Permalink
create releases page
Browse files Browse the repository at this point in the history
Signed-off-by: Avelino <t@avelino.xxx>
  • Loading branch information
avelino committed Aug 5, 2020
1 parent dcd55a2 commit 7ab0c71
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/releases/_index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
date: 2020-08-04T20:08:11+01:00
title: Releases
menu: main
weight: 30
type: custom
layout: releases
---

### Releases

6 changes: 6 additions & 0 deletions layouts/custom/releases.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ partial "header.html" . }}

{{.Content}}
{{ partial "releases.html" . }}

{{ partial "footer.html" . }}
10 changes: 10 additions & 0 deletions layouts/partials/releases.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ $RELEASES := getJSON "https://api.github.com/repos/prest/prest/releases?sort=id" }}
<ul>
{{ range $RELEASES }}
<li>
<a href="{{.html_url}}" target="_bank">{{.name}} - released this: {{.published_at}}</a><br />
<p>{{.body | markdownify }}</p>
</li>
{{end}}
<li><a href="https://github.com/prest/prest/releases" target="_blank">view more</a></li>
</u>

0 comments on commit 7ab0c71

Please sign in to comment.