Add favorites page.

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

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 }}