Skip to content

Commit

Permalink
Add blog frontpage shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Feb 16, 2024
1 parent 63fc133 commit 8c7eb0b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions layouts/shortcodes/blog.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<section class="content-padding flex-row">
<div class="content-container">
{{ $latest := (first 8 (where $.Site.RegularPages.ByPublishDate.Reverse "Section" "posts")) }}

{{ partial "posts/list-with-summary.html" $latest }}

<div class="panel-box-action" style="text-align: left;">
<a class="panel-button" href="{{ "posts/" | relURL }}">Browse all posts &nbsp;⟶</a>
</div>
</div>
</section>

0 comments on commit 8c7eb0b

Please sign in to comment.