Skip to content

Commit 3ea668b

Browse files
Add blog frontpage shortcode (#488)
1 parent 63fc133 commit 3ea668b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

layouts/shortcodes/blog.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<section class="content-padding flex-row">
2+
<div class="content-container">
3+
{{ $latest := (first 8 (where $.Site.RegularPages.ByPublishDate.Reverse "Section" "posts")) }}
4+
5+
{{ partial "posts/list-with-summary.html" $latest }}
6+
7+
<div class="panel-box-action" style="text-align: left;">
8+
<a class="panel-button" href="{{ "posts/" | relURL }}">Browse all posts &nbsp;⟶</a>
9+
</div>
10+
</div>
11+
</section>

0 commit comments

Comments
 (0)