diff --git a/src/content/archives.md b/src/content/archives.md deleted file mode 100644 index c2a6133..0000000 --- a/src/content/archives.md +++ /dev/null @@ -1,3 +0,0 @@ -# Archives - -Archives live here diff --git a/src/content/extra/archives.md b/src/content/extra/archives.md new file mode 100644 index 0000000..1746531 --- /dev/null +++ b/src/content/extra/archives.md @@ -0,0 +1,6 @@ +--- +title: Archives Custom Title +--- +# Archives + +Archives live here diff --git a/src/content/metadata.json b/src/content/metadata.json index 8c912bd..fe4b596 100644 --- a/src/content/metadata.json +++ b/src/content/metadata.json @@ -9,5 +9,8 @@ "github": "https://github.com", "email": "email:cirno@gensokyo.jp", "orcid": "https://orcid.org/cirno" - } + }, + "extra": [ + { "route": "/archives", "name": "Archives" } + ] } diff --git a/src/lib/sitemap.ts b/src/lib/sitemap.ts index 3b312b9..5dfcf30 100644 --- a/src/lib/sitemap.ts +++ b/src/lib/sitemap.ts @@ -1,7 +1,8 @@ +import siteMetadata from '$content/metadata.json'; + export const routes: { route: string, name: string, disabled?: boolean }[] = [ { route: "/", name: "Home" }, { route: "/post", name: "Blog" }, { route: "/tag", name: "Tags" }, { route: "/gallery", name: "Gallery", disabled: true }, - { route: "/archives", name: "Archives" }, -]; +].concat(siteMetadata?.extra || []); diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 7170bf9..8c0ad4f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -103,6 +103,7 @@ @media (max-width: 700px) { #layout { flex-direction: column; + margin-top: 10px; gap: 20px; } } diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index ef78f77..80e0129 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -49,13 +49,12 @@ class="floater-elem" style="padding-bottom: {(1 - progress) * 50}vh" > -
- Bio - +