Theme: Display articles for 5 days (+6 hours)
This commit is contained in:
parent
12f14dfc68
commit
22ac93080c
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
|||
{{- end }}
|
||||
|
||||
{{- $article := where (.Site.GetPage "blog").Pages ".Params.categories" "article" }}
|
||||
{{- $articleDisplayTime := time.ParseDuration "-30h" }}
|
||||
{{- $articleDisplayTime := time.ParseDuration "-126h" }}
|
||||
{{- $articleNew := where $article ".Params.publishDate" "ge" (time.Now.Add $articleDisplayTime) }}
|
||||
{{ if $articleNew }}
|
||||
<div class="announcements">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue