forked from cms/tibi-svelte-starter
Meta Angaben für Content-Seiten hinzugefügt.
This commit is contained in:
@@ -80,61 +80,84 @@
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{content?.name ? content?.name + " - " : ""}{$generalInfo?.meta?.metaTitle}</title>
|
||||
<title
|
||||
>{content?.name ? content?.name + " - " : ""}{content?.meta?.metaTitle
|
||||
? content?.meta?.metaTitle
|
||||
: $generalInfo?.meta?.metaTitle}</title
|
||||
>
|
||||
<meta
|
||||
name="description"
|
||||
content="{content?.meta?.metaDescription
|
||||
? content?.meta?.metaDescription
|
||||
: $generalInfo?.meta?.metaDescription}"
|
||||
/>
|
||||
<meta
|
||||
name="keywords"
|
||||
content="{content?.meta?.metaKeywords
|
||||
? content?.meta?.metaKeywords.replaceAll(' ', '')
|
||||
: $generalInfo?.meta?.metaKeywords.replaceAll(' ', '')}"
|
||||
/>
|
||||
<meta
|
||||
name="robots"
|
||||
content="{content?.meta?.metaTagRobots ? content?.meta?.metaTagRobots : $generalInfo?.meta?.metaTagRobots}"
|
||||
/>
|
||||
{#if $generalInfo?.person?.firstname || $generalInfo?.person?.lastname}
|
||||
<meta
|
||||
name="author"
|
||||
content="{$generalInfo?.person?.firstname ? $generalInfo?.person?.firstname : ''} {$generalInfo?.person
|
||||
?.lastname
|
||||
? $generalInfo?.person?.lastname
|
||||
: ''}"
|
||||
/>
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{#if loading}
|
||||
<!-- Loader -->
|
||||
{:else if content}
|
||||
<!--
|
||||
{#each content.blocks || [] as b}
|
||||
{JSON.stringify(b)}
|
||||
{/each}
|
||||
-->
|
||||
<ArticlesList path="{path}" />
|
||||
{:else}
|
||||
<div class="page-404">
|
||||
<div>
|
||||
<Image
|
||||
collectionName="general"
|
||||
entryId="{$generalInfo.id}"
|
||||
file="{$generalInfo?.media?.brand}"
|
||||
alt="{$generalInfo?.meta?.metaTitle}"
|
||||
cssClass="brand"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<h1>{$_("pageNotFound")}</h1>
|
||||
|
||||
<p class="mb-md">
|
||||
{#if connectedContentNotFound}
|
||||
<div>
|
||||
{@html $_("connectedContentNotFound", {
|
||||
values: {
|
||||
url: currentDomain + "/" + path,
|
||||
lang: $_($currentLang) + ` (${$currentLang})`,
|
||||
},
|
||||
})}
|
||||
</div>
|
||||
{:else}
|
||||
<strong>
|
||||
<a href="{currentDomain + '/' + path}">{currentDomain + "/" + path}</a>
|
||||
</strong>
|
||||
{/if}
|
||||
</p>
|
||||
<p>
|
||||
{@html $_("pageNotFoundInformation", {
|
||||
values: {
|
||||
url: currentDomain,
|
||||
backUrl: currentDomain + "/" + path,
|
||||
},
|
||||
})}
|
||||
</p>
|
||||
</div>
|
||||
{/if}
|
||||
{#if loading}
|
||||
<!-- Loader -->
|
||||
{:else if content}
|
||||
<!--
|
||||
{#each content.blocks || [] as b}
|
||||
{JSON.stringify(b)}
|
||||
{/each}
|
||||
-->
|
||||
<ArticlesList path="{path}" tags="{content?.tags}" />
|
||||
{:else}
|
||||
<div class="page-404">
|
||||
<div>
|
||||
<Image
|
||||
collectionName="general"
|
||||
entryId="{$generalInfo.id}"
|
||||
file="{$generalInfo?.media?.brand}"
|
||||
alt="{$generalInfo?.meta?.metaTitle}"
|
||||
cssClass="brand"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<h1>{$_("pageNotFound")}</h1>
|
||||
|
||||
<p class="mb-md">
|
||||
{#if connectedContentNotFound}
|
||||
<div>
|
||||
{@html $_("connectedContentNotFound", {
|
||||
values: {
|
||||
url: currentDomain + "/" + path,
|
||||
lang: $_($currentLang) + ` (${$currentLang})`,
|
||||
},
|
||||
})}
|
||||
</div>
|
||||
{:else}
|
||||
<strong>
|
||||
<a href="{currentDomain + '/' + path}">{currentDomain + "/" + path}</a>
|
||||
</strong>
|
||||
{/if}
|
||||
</p>
|
||||
<p>
|
||||
{@html $_("pageNotFoundInformation", {
|
||||
values: {
|
||||
url: currentDomain,
|
||||
backUrl: currentDomain + "/" + path,
|
||||
},
|
||||
})}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user