Meta Angaben für Content-Seiten hinzugefügt.

This commit is contained in:
2022-06-15 08:26:06 +02:00
parent ee7ed0db1f
commit 25a39dfac0
9 changed files with 192 additions and 116 deletions

View File

@@ -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) {