mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-05 08:13:40 +00:00
Remove length limit on recent posts
This commit is contained in:
@@ -102,7 +102,7 @@ one = "One min read"
|
||||
other = "{{ .Count }} mins read"
|
||||
|
||||
[recentPosts]
|
||||
other = "Recent Posts"
|
||||
other = "Entries"
|
||||
|
||||
[reply]
|
||||
other = "Reply"
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user