Remove length limit on recent posts

This commit is contained in:
Dave Gallant
2021-12-29 23:28:32 -05:00
parent afef9dd71d
commit 7f2fa75d45
2 changed files with 2 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ one = "One min read"
other = "{{ .Count }} mins read"
[recentPosts]
other = "Recent Posts"
other = "Entries"
[reply]
other = "Reply"

View File

@@ -3,8 +3,6 @@
{{- $lang := .Site.Language.Lang -}}
{{- $config := ( ( index $configData $lang ) | default $configData ) -}}
{{- $length := ( $config.length | default 5 ) -}}
<section class='widget widget-recent_posts sep-after'>
<header>
<h4 class='title widget-title'>
@@ -13,7 +11,7 @@
</header>
<ul class='list'>
{{ range ( first $length ( where .Site.RegularPages "Type" "not in" $config.excludeTypes ) ) }}
{{ range ( where .Site.RegularPages "Type" "not in" $config.excludeTypes ) }}
{{ .Render "li" }}
{{ end }}
</ul>