neue Komponente für Artikellisten. Möglichkeit, Artikel Seiten zuzuweisen.

This commit is contained in:
2022-06-13 13:58:04 +02:00
parent 60bd5d21c9
commit 7c712ee7c8
6 changed files with 85 additions and 37 deletions

View File

@@ -9,28 +9,16 @@
import ContactForm from "../widgets/ContactForm.svelte"
import GeneralMediaImage from "../widgets/GeneralMediaImage.svelte"
import Article from "../widgets/Article.svelte"
import ArticlesList from "../widgets/ArticlesList.svelte"
let expandedForm: string = "recipe"
let articleEntries: CollectionEntry[] = []
$: if ($currentLang) {
getArticles("articles", {
filter: {
"article.general.locale": $currentLang,
},
}).then((response) => {
articleEntries = response
})
}
</script>
<section class="contact">
<div class="container">
<div class="row">
<div class="col-md-12">
{#each articleEntries || [] as entry}
<Article entry="{entry}" />
{/each}
<ArticlesList tag="home" />
</div>
</div>
<div class="row">