mirror of
https://github.com/lmika/postlist-for-micro.blog.git
synced 2025-08-25 08:26:08 +00:00
Added title-matches attribute
This commit is contained in:
parent
ea5168b7a2
commit
2aa09b4b97
|
@ -5,6 +5,9 @@
|
|||
{{- $pgr = (where $pgr "Params.categories" "intersect" (slice .)) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if (.Get "title-matches") -}}
|
||||
{{- $pgr = (where $pgr "Params.title" "like" (.Get "title-matches") -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if (ne (.Get "order") "") -}}
|
||||
{{- $order := split (.Get "order") " " -}}
|
||||
|
|
Loading…
Reference in a new issue