feat: recent posts section/partial

This commit is contained in:
Jacky Zhao 2022-05-23 22:25:13 -07:00
parent 0439c163a0
commit 0293c12217
5 changed files with 54 additions and 29 deletions

View file

@ -0,0 +1,12 @@
<div class="content-list">
<h2>Recent Notes</h2>
<!--
You can also configure this to find related pages!
All you need to pass into the "page-list.html" partial
is a collection of pages.
https://gohugo.io/content-management/related/
-->
{{$notes := .Site.RegularPages}}
{{partial "page-list.html" (first 3 $notes)}}
</div>