-
-
diff --git a/svelte-app/src/components/document/content/common/summary/items.svelte b/svelte-app/src/components/document/content/common/summary/items.svelte
index dc6c7bb6a..e28f9cd0c 100644
--- a/svelte-app/src/components/document/content/common/summary/items.svelte
+++ b/svelte-app/src/components/document/content/common/summary/items.svelte
@@ -1,23 +1,20 @@
diff --git a/svelte-app/src/components/document/content/content.svelte b/svelte-app/src/components/document/content/content.svelte
index 156e1a898..40730bc1b 100644
--- a/svelte-app/src/components/document/content/content.svelte
+++ b/svelte-app/src/components/document/content/content.svelte
@@ -1,8 +1,6 @@
-
{#if data.body}
diff --git a/svelte-app/src/components/document/route.svelte b/svelte-app/src/components/document/route.svelte
index c28b15ace..7966ea31f 100644
--- a/svelte-app/src/components/document/route.svelte
+++ b/svelte-app/src/components/document/route.svelte
@@ -65,14 +65,6 @@
-
-
-
-
-
-
-
+
+
+
diff --git a/svelte-app/src/components/layouts/scroll-container.svelte b/svelte-app/src/components/layouts/scroll-container.svelte
index 758b1f24d..b3bf4b682 100644
--- a/svelte-app/src/components/layouts/scroll-container.svelte
+++ b/svelte-app/src/components/layouts/scroll-container.svelte
@@ -3,21 +3,28 @@
import { navigating } from '$app/stores';
+ import type { Navigation } from '@sveltejs/kit';
import type { Unsubscriber } from 'svelte/store';
export let element: HTMLDivElement;
- let unsubscribe: Unsubscriber;
+ let unsubscribe: Unsubscriber,
+ navState: Navigation | null = null;
onMount(() => {
unsubscribe ||= navigating.subscribe((state) => {
+ state && (navState = state);
+
if (state !== null) {
return;
}
- element.scrollTo({
- top: 0,
- behavior: 'smooth'
- });
+
+ if (navState) {
+ element.scrollTo({
+ top: 0,
+ behavior: 'smooth'
+ });
+ }
});
});
@@ -25,7 +32,7 @@
diff --git a/svelte-app/src/languages/en.json b/svelte-app/src/languages/en.json
index 15689f569..3e25bd3af 100644
--- a/svelte-app/src/languages/en.json
+++ b/svelte-app/src/languages/en.json
@@ -35,6 +35,7 @@
"Go to": "Go to",
"Go to footnote source": "Go to footnote source",
"Hi there, welcome to my little corner of the internet! Here you'll find": "Hi there, welcome to my little corner of the internet! Here you'll find",
+ "Hide Contents": "Hide Contents",
"Home": "Home",
"Index": "Index",
"Just now": "Just now",
@@ -62,6 +63,7 @@
"Post": "Post",
"Project": "Project",
"Projects & Talks": "Projects & Talks",
+ "Read more": "Read more",
"Recent": "Recent",
"Recent '{tag}' posts": "Recent '{tag}' posts",
"Recent '{tag}' work": "Recent '{tag}' work",
@@ -75,6 +77,7 @@
"Scroll to top": "Scroll to top",
"Secret & work-in-progress features": "Secret & work-in-progress features",
"See more": "See more",
+ "Show Contents": "Show Contents",
"Sorry, something went wrong handling your login.": "Sorry, something went wrong handling your login.",
"Sorry, something went wrong while logging you out.": "Sorry, something went wrong while logging you out.",
"Summary": "Summary",
diff --git a/svelte-app/src/languages/fr.json b/svelte-app/src/languages/fr.json
index 7e75ae506..553b3783e 100644
--- a/svelte-app/src/languages/fr.json
+++ b/svelte-app/src/languages/fr.json
@@ -35,6 +35,7 @@
"Go to": "Aller à",
"Go to footnote source": "Aller à la source de la note de bas de page",
"Hi there, welcome to my little corner of the internet! Here you'll find": "Salut, bienvenue dans mon petit coin d'internet! Ici vous trouverez",
+ "Hide Contents": "Masquer le Contenu",
"Home": "Accueil",
"Index": "Page d'accueil",
"Just now": "À l'instant",
@@ -62,6 +63,7 @@
"Post": "Article",
"Project": "Projet",
"Projects & Talks": "Projets & Conférences",
+ "Read more": "Lire la suite",
"Recent": "Récent",
"Recent '{tag}' posts": "Articles récents '{tag}'",
"Recent '{tag}' work": "Travail récent '{tag}'",
@@ -75,6 +77,7 @@
"Scroll to top": "Défiler vers le haut",
"Secret & work-in-progress features": "Fonctionnalités secrètes et en cours de développement",
"See more": "Voir plus",
+ "Show Contents": "Afficher le Contenu",
"Sorry, something went wrong handling your login.": "Désolé, quelque chose s'est mal passé lors de votre connexion.",
"Sorry, something went wrong while logging you out.": "Désolé, quelque chose s'est mal passé lors de votre déconnexion.",
"Summary": "Sommaire",
diff --git a/svelte-app/src/lib/helpers/scrollTo.ts b/svelte-app/src/lib/helpers/scrollTo.ts
index 9cee67f63..bb1feec38 100644
--- a/svelte-app/src/lib/helpers/scrollTo.ts
+++ b/svelte-app/src/lib/helpers/scrollTo.ts
@@ -1,6 +1,6 @@
import type { Page as PageStore } from '@sveltejs/kit';
-export default (url: PageStore['url'], scrollParams = {}) => {
+export default (url: PageStore['url'], scrollParams: ScrollIntoViewOptions = {}) => {
const { hash } = url || { hash: '' };
if (!hash.length) {
diff --git a/svelte-app/src/routes/+layout.svelte b/svelte-app/src/routes/+layout.svelte
index 28e63163f..ad64373c7 100644
--- a/svelte-app/src/routes/+layout.svelte
+++ b/svelte-app/src/routes/+layout.svelte
@@ -134,7 +134,7 @@
>
-
+
diff --git a/svelte-app/src/routes/[[lang=lang]]/+page.svelte b/svelte-app/src/routes/[[lang=lang]]/+page.svelte
index 2a428e668..b8b76d68c 100644
--- a/svelte-app/src/routes/[[lang=lang]]/+page.svelte
+++ b/svelte-app/src/routes/[[lang=lang]]/+page.svelte
@@ -2,6 +2,7 @@
import { page } from '$app/stores';
import { linkTo, t } from '$i18n';
+ import ArrowButton from '$components/controls/arrow-button.svelte';
import EmptyContent from '$components/empty-content.svelte';
import HeadedBlock from '$components/headings/headed-block.svelte';
import ContentWrapper from '$components/layouts/content-wrapper.svelte';
@@ -47,12 +48,9 @@
{/each}
{:else}
@@ -75,12 +73,9 @@
{/each}
{:else}