mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 02:14:21 +00:00
1 parent
d2a90467f3
commit
f01260371b
2 files changed
+8
-8
No files matched your search
@@ -24,9 +24,9 @@
|
||||
{{ $query = $query | intersect $archive_page.Pages }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Sort (use Hugo default for now) */}}
|
||||
{{/* $sort_by := "Date" */}}
|
||||
{{/* $query = sort $query $sort_by $items_sort */}}
|
||||
{{/* Sort */}}
|
||||
{{ $sort_by := "Date" }}
|
||||
{{ $query = sort $query $sort_by $items_sort }}
|
||||
|
||||
{{/* Limit */}}
|
||||
{{ $query = first $items_count $query }}
|
||||
|
||||
@@ -34,15 +34,15 @@
|
||||
{{ $query = where $query "Params.featured" "!=" true }}
|
||||
{{ end }}
|
||||
{{ if $st.Params.content.filters.exclude_past }}
|
||||
{{ $query = where $query "Date" "<=" now }}
|
||||
{{ $query = where $query "Date" ">=" now }}
|
||||
{{ end }}
|
||||
{{ if $st.Params.content.filters.exclude_future }}
|
||||
{{ $query = where $query "Date" ">" now }}
|
||||
{{ $query = where $query "Date" "<" now }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Sort (use Hugo default for now) */}}
|
||||
{{/* $sort_by := "Date" */}}
|
||||
{{/* $query = sort $query $sort_by $items_sort */}}
|
||||
{{/* Sort */}}
|
||||
{{ $sort_by := "Date" }}
|
||||
{{ $query = sort $query $sort_by $items_sort }}
|
||||
|
||||
{{/* Offset and Limit */}}
|
||||
{{ if gt $items_offset 0 }}
|
||||
|
||||
Reference in new issue
Block a user