Browse Source

Add favorites page.

donations
Danila Fedorin 11 months ago
parent
commit
d5541bc985
  1. 9
      content/favorites.md
  2. 10
      themes/vanilla/layouts/favorites/single.html

9
content/favorites.md

@ -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.

10
themes/vanilla/layouts/favorites/single.html

@ -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 }}
Loading…
Cancel
Save