Add favorites page.

This commit is contained in:
Danila Fedorin 2020-12-30 14:41:29 -08:00
parent 98a46e9fd4
commit d5541bc985
2 changed files with 19 additions and 0 deletions

9
content/favorites.md Normal file
View File

@ -0,0 +1,9 @@
---
title: Favorites
type: "favorites"
description: Posts from Daniel's personal blog that he has enjoyed writing the most, or that he thinks turned out very well.
---
The amount of content on this blog is monotonically increasing. Thus, as time goes on, it's becoming
harder and harder to see at a glance what kind of articles I write. To address this, I've curated
a small selection of articles from this site that I've particularly enjoyed writing, or that I think
turned out especially well. They're listed below, most recent first.

View File

@ -0,0 +1,10 @@
{{ define "main" }}
<h2>{{ .Title }} </h2>
{{ .Content }}
<ul class="post-list">
{{ range (where (where .Site.Pages.ByDate.Reverse "Section" "blog") ".Kind" "!=" "section") }}
{{ if .Params.favorite }}{{ partial "post.html" . }}{{ end }}
{{ end }}
</ul>
{{ end }}