mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-06 00:33:39 +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"
|
other = "{{ .Count }} mins read"
|
||||||
|
|
||||||
[recentPosts]
|
[recentPosts]
|
||||||
other = "Recent Posts"
|
other = "Entries"
|
||||||
|
|
||||||
[reply]
|
[reply]
|
||||||
other = "Reply"
|
other = "Reply"
|
||||||
|
@@ -3,8 +3,6 @@
|
|||||||
{{- $lang := .Site.Language.Lang -}}
|
{{- $lang := .Site.Language.Lang -}}
|
||||||
{{- $config := ( ( index $configData $lang ) | default $configData ) -}}
|
{{- $config := ( ( index $configData $lang ) | default $configData ) -}}
|
||||||
|
|
||||||
{{- $length := ( $config.length | default 5 ) -}}
|
|
||||||
|
|
||||||
<section class='widget widget-recent_posts sep-after'>
|
<section class='widget widget-recent_posts sep-after'>
|
||||||
<header>
|
<header>
|
||||||
<h4 class='title widget-title'>
|
<h4 class='title widget-title'>
|
||||||
@@ -13,7 +11,7 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<ul class='list'>
|
<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" }}
|
{{ .Render "li" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
Reference in New Issue
Block a user