mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 04:14:41 +00:00
feat(widget): enable splitting Talks section into past and upcoming talks
See #721
This commit is contained in:
1 parent
a622c8d19f
commit
ed8f04ea2f
2 files changed
+8
No files matched your search
@@ -28,6 +28,8 @@ subtitle = ""
|
|||||||
category = ""
|
category = ""
|
||||||
publication_type = ""
|
publication_type = ""
|
||||||
exclude_featured = false
|
exclude_featured = false
|
||||||
|
exclude_past = false
|
||||||
|
exclude_future = false
|
||||||
|
|
||||||
[design]
|
[design]
|
||||||
# Toggle between the various page layout types.
|
# Toggle between the various page layout types.
|
||||||
|
|||||||
@@ -33,6 +33,12 @@
|
|||||||
{{ if $st.Params.content.filters.exclude_featured }}
|
{{ if $st.Params.content.filters.exclude_featured }}
|
||||||
{{ $query = where $query "Params.featured" "!=" true }}
|
{{ $query = where $query "Params.featured" "!=" true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if $st.Params.content.filters.exclude_past }}
|
||||||
|
{{ $query = where $query "Date" "<=" now }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if $st.Params.content.filters.exclude_future }}
|
||||||
|
{{ $query = where $query "Date" ">" now }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
{{/* Sort (use Hugo default for now) */}}
|
{{/* Sort (use Hugo default for now) */}}
|
||||||
{{/* $sort_by := "Date" */}}
|
{{/* $sort_by := "Date" */}}
|
||||||
|
|||||||
Reference in new issue
Block a user