diff options
author | Alan Pearce | 2017-05-06 17:36:53 +0200 |
---|---|---|
committer | Alan Pearce | 2017-05-06 17:36:53 +0200 |
commit | 0929aad13a77aca85652c545cf1dbc0920334fa6 (patch) | |
tree | ec2b9266568f55204efa9eba556a6ffcd95a792c /layouts | |
parent | 26bd93c81f393642ab1c365673e5c54f89529d33 (diff) | |
download | hyde-0929aad13a77aca85652c545cf1dbc0920334fa6.tar.lz hyde-0929aad13a77aca85652c545cf1dbc0920334fa6.tar.zst hyde-0929aad13a77aca85652c545cf1dbc0920334fa6.zip |
feat: limit recent posts to 10
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index 712ba03..05337f0 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -4,7 +4,7 @@ <section class="recent"> <h2>Recent Posts</h2> <ul class="posts"> - {{ range .Data.Pages }} + {{ range first 10 .Data.Pages }} <li itemscope itemtype="http://schema.org/BlogPosting"> <a class="post-title" itemprop="url" href="{{ .RelPermalink }}"><span itemprop="name">{{ .Title }}</span></a> <time class="post-date" itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">{{ .Date.Format "Monday, 2 January 2006" }}</time> |