forked from cms/tibi-svelte-starter
Meta Angaben für Content-Seiten hinzugefügt.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
import Article from "../widgets/Article.svelte"
|
||||
|
||||
export let tag: string = null
|
||||
export let tags: string[] = null
|
||||
export let path: string = null
|
||||
|
||||
let articleEntries: CollectionEntry[] = []
|
||||
@@ -14,8 +14,8 @@
|
||||
"article.general.locale": $currentLang,
|
||||
}
|
||||
|
||||
if (tag) {
|
||||
filter["article.general.tags"] = { $in: [tag] }
|
||||
if (tags && tags?.length) {
|
||||
filter["article.general.tags"] = { $in: tags }
|
||||
}
|
||||
|
||||
if (path) {
|
||||
|
||||
Reference in New Issue
Block a user