Content: change blog post showing method

beep
Jae Lo Presti 2 months ago
parent db2eb982ab
commit e56dcded1a
Signed by: jae
SSH Key Fingerprint: SHA256:hmKix/+XG+9GEGHgDdiqXfmB2O7BU4CPVOoQoIYIQ2Y
  1. 2
      content/_index.md
  2. 7
      layouts/shortcodes/postlist.html

@ -28,6 +28,8 @@ Matrix will likely get you the fastest response tho I read and respond to every
## Latest of the blog
Don't miss anything from the blog [by adding it to your RSS reader](/blog/index.xml).
{{< postlist >}}
---

@ -1,5 +1,6 @@
{{ $blog_pages := where .Site.RegularPages "Section" "==" "blog" }}
<ul>
{{ range ( first 5 ( where .Site.Pages "Type" "blog" ).ByDate.Reverse ) }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ range first 5 $blog_pages }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>