Addition : bouton retour
This commit is contained in:
@ -3,7 +3,6 @@ import { json } from '@sveltejs/kit';
|
|||||||
|
|
||||||
export const GET = async () => {
|
export const GET = async () => {
|
||||||
const allPosts = await fetchMarkdownArticles();
|
const allPosts = await fetchMarkdownArticles();
|
||||||
|
|
||||||
const sortedArticles = allPosts.sort((a, b) => {
|
const sortedArticles = allPosts.sort((a, b) => {
|
||||||
return new Date(b.meta.date).getTime() - new Date(a.meta.date).getTime();
|
return new Date(b.meta.date).getTime() - new Date(a.meta.date).getTime();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -10,6 +10,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="lg:px-12 content-center">
|
<div class="lg:px-12 content-center">
|
||||||
<svelte:component this={data.content} />
|
<svelte:component this={data.content} />
|
||||||
|
<p class="rounded-lg font-bold border-2 py-2 pl-2 mt-8 bg-neutral-800">
|
||||||
|
<a href="/articles">Revenir à l'index</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="lg:px-24 md:px-12 content-center">
|
<div class="lg:px-24 md:px-12 content-center">
|
||||||
<svelte:component this={data.content} />
|
<svelte:component this={data.content} />
|
||||||
|
<p class="rounded-lg font-bold border-2 py-2 pl-2 mt-8 bg-neutral-800">
|
||||||
|
<a href="/guides">Revenir à l'index</a>
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user