Skip to content
Permalink
Browse files

Most ordered by page date, reversed

  • Loading branch information...
imattman committed May 24, 2019
1 parent a286227 commit 4466ac2abf7b0122d56ae3c7955ba13c9d645e2a
@@ -1,6 +1,6 @@
---
title: "Contribute to this Website"
date: "2018-11-19"
#date: "2018-11-19"
lastmod: "2018-11-19"
header_image: "/img/keyboard-closeup.jpg"
description: "Contribututions to our website are welcome and encouraged from community members! This page describes how to get started."
@@ -1,6 +1,6 @@
---
title: "Making Draft Content Visible"
date: "2018-11-18"
#date: "2018-11-18"
lastmod: "2019-01-01"
author: ""
header_image: "/img/keyboard-closeup.jpg"
@@ -1,7 +1,7 @@
---
title: "How to Open and Read Files"
description: "A short tutorial that shows how to open and read text files using Python"
date: "2018-12-04"
#date: "2018-12-04"
lastmod: "2018-12-04"
#author: "Matt Phillips"
#author_github: "imattman"
@@ -1,7 +1,7 @@
<div class="card">
<div class="card-content">
<h1 class="title is-5">Recent Posts</h1>
{{ range first 5 (where .Site.RegularPages "Section" "post").ByPublishDate }}
{{ range first 5 (where .Site.RegularPages "Section" "post").ByDate.Reverse }}
<h1><a href="{{ .Permalink | relURL }}">{{ .Title }}</a></h1>
<time class="has-text-grey-light is-size-7">{{ .Date.Day }} {{ .Date.Month }} {{ .Date.Year }}</time>
{{ end }}

0 comments on commit 4466ac2

Please sign in to comment.
You can’t perform that action at this time.