Add favorites page.
This commit is contained in:
parent
98a46e9fd4
commit
d5541bc985
9
content/favorites.md
Normal file
9
content/favorites.md
Normal 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.
|
10
themes/vanilla/layouts/favorites/single.html
Normal file
10
themes/vanilla/layouts/favorites/single.html
Normal 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 }}
|
Loading…
Reference in New Issue
Block a user