feat: remove Home navigation item in favor of back link

This commit is contained in:
Stefan Imhoff
2023-06-14 20:14:29 +02:00
parent 6dc5adc362
commit c5590b072e
15 changed files with 21 additions and 11 deletions

View File

@@ -1,8 +1,4 @@
[ [
{
"title": "Home",
"url": "/"
},
{ {
"title": "About", "title": "About",
"url": "/about/" "url": "/about/"

View File

@@ -27,7 +27,7 @@ const schema = JSON.stringify({
}); });
--- ---
<GridLayout title={frontmatter.title} grid="narrow" {...frontmatter}> <GridLayout title={frontmatter.title} grid="narrow" backLink="/" {...frontmatter}>
<PageTitle slot="title" grid="narrow" {...frontmatter}> <PageTitle slot="title" grid="narrow" {...frontmatter}>
{frontmatter.title} {frontmatter.title}
</PageTitle> </PageTitle>

View File

@@ -14,6 +14,7 @@ const description = 'Page not found.';
--- ---
<GridLayout <GridLayout
backLink="/"
class="grid" class="grid"
description={description} description={description}
grid="wide" grid="wide"

View File

@@ -2,6 +2,7 @@
layout: ../layouts/AboutLayout.astro layout: ../layouts/AboutLayout.astro
title: About title: About
description: Im Stefan Imhoff, a Front-End Web Developer, and Designer from Hamburg, Germany. description: Im Stefan Imhoff, a Front-End Web Developer, and Designer from Hamburg, Germany.
backLink: /
--- ---
import { animation } from "../data/site"; import { animation } from "../data/site";

View File

@@ -22,7 +22,7 @@ const title = 'AI Art';
const description = 'This is a collection of AI art pieces Ive created with Stable Diffusion.'; const description = 'This is a collection of AI art pieces Ive created with Stable Diffusion.';
--- ---
<GridLayout title={title} description={description} grid="wide" class="grid" innerGrid> <GridLayout title={title} description={description} grid="wide" backLink="/" class="grid" innerGrid>
<PageTitle grid="wide" innerGrid>AI Art</PageTitle> <PageTitle grid="wide" innerGrid>AI Art</PageTitle>
<article <article

View File

@@ -3,6 +3,7 @@ layout: ../layouts/PageLayout.astro
title: Colophon title: Colophon
description: The design and technology behind this website explained. description: The design and technology behind this website explained.
intro: In publishing, a colophon is a brief statement containing information about the publication. intro: In publishing, a colophon is a brief statement containing information about the publication.
backLink: /
--- ---
import { animation, animationDelay } from "../data/site"; import { animation, animationDelay } from "../data/site";

View File

@@ -28,6 +28,7 @@ const description =
--- ---
<GridLayout <GridLayout
backLink="/"
class="grid" class="grid"
description={description} description={description}
grid="wide" grid="wide"

View File

@@ -19,7 +19,7 @@ const description =
'This is an ever-growing collection of Haiku I have written. My Haiku reflect my own unique perspective on the world, and I hope they bring a bit of beauty and insight to the reader.'; 'This is an ever-growing collection of Haiku I have written. My Haiku reflect my own unique perspective on the world, and I hope they bring a bit of beauty and insight to the reader.';
--- ---
<GridLayout title={title} description={description} grid="wide" class="grid" innerGrid> <GridLayout title={title} description={description} grid="wide" backLink="/" class="grid" innerGrid>
<PageTitle grid="wide" innerGrid>Haiku</PageTitle> <PageTitle grid="wide" innerGrid>Haiku</PageTitle>
<article <article

View File

@@ -4,6 +4,7 @@ title: Imprint
description: The imprint of this website. description: The imprint of this website.
noindex: true noindex: true
nofollow: true nofollow: true
backLink: /
--- ---
import { mapping } from "../mdx-components.ts"; import { mapping } from "../mdx-components.ts";

View File

@@ -24,7 +24,7 @@ const title = 'Journal';
const description = 'I am writing essays about various topics in this Journal.'; const description = 'I am writing essays about various topics in this Journal.';
--- ---
<GridLayout title={title} description={description} grid="wide" class="grid" innerGrid> <GridLayout title={title} description={description} grid="wide" class="grid" backLink="/" innerGrid>
<PageTitle grid="wide" innerGrid>Journal</PageTitle> <PageTitle grid="wide" innerGrid>Journal</PageTitle>
<article <article

View File

@@ -2,6 +2,7 @@
layout: ../layouts/PageLayout.astro layout: ../layouts/PageLayout.astro
title: Now title: Now
description: This is my Now page, listing the things I currently do. description: This is my Now page, listing the things I currently do.
backLink: /
--- ---
import { animation, animationDelay } from "../data/site"; import { animation, animationDelay } from "../data/site";

View File

@@ -20,7 +20,14 @@ const description =
'Im a Frontend Developer by profession. I worked in Design, Editing, and 3D Animation. These are projects I created over the last years.'; 'Im a Frontend Developer by profession. I worked in Design, Editing, and 3D Animation. These are projects I created over the last years.';
--- ---
<GridLayout title={title} description={description} grid="fullsize" class="grid" innerGrid> <GridLayout
title={title}
description={description}
grid="fullsize"
class="grid"
backLink="/"
innerGrid
>
<PageTitle <PageTitle
grid="wide" grid="wide"
innerGrid innerGrid

View File

@@ -21,7 +21,7 @@ const title = 'Sketchnotes';
const description = 'This is a collection of Sketchnotes Ive drawn.'; const description = 'This is a collection of Sketchnotes Ive drawn.';
--- ---
<GridLayout title={title} description={description} grid="wide" class="grid" innerGrid> <GridLayout title={title} description={description} grid="wide" backLink="/" class="grid" innerGrid>
<PageTitle grid="wide" innerGrid>Sketchnotes</PageTitle> <PageTitle grid="wide" innerGrid>Sketchnotes</PageTitle>
<article <article

View File

@@ -4,6 +4,7 @@ title: Tools
description: I enjoy learning how other people work, what hardware, software, tools, and gadgets they use. On this page, I present my tools. description: I enjoy learning how other people work, what hardware, software, tools, and gadgets they use. On this page, I present my tools.
intro: I enjoy learning how other people work, what hardware, software, tools, and gadgets they use. On this page, I present my tools. intro: I enjoy learning how other people work, what hardware, software, tools, and gadgets they use. On this page, I present my tools.
cover: /assets/images/cover/home-office.jpg cover: /assets/images/cover/home-office.jpg
backLink: /
--- ---
import Toolbox from "../components/Toolbox.astro"; import Toolbox from "../components/Toolbox.astro";

View File

@@ -15,7 +15,7 @@ const description =
'I took the time and converted all colors in the book “Traditional Colors of Japan” by Nobyoshi Hamada into an ASE file free to download.'; 'I took the time and converted all colors in the book “Traditional Colors of Japan” by Nobyoshi Hamada into an ASE file free to download.';
--- ---
<GridLayout title={title} description={description} grid="wide" class="grid" innerGrid> <GridLayout title={title} description={description} grid="wide" backLink="/" class="grid" innerGrid>
<PageTitle grid="wide" innerGrid>The Traditional Colors of&nbsp;Japan</PageTitle> <PageTitle grid="wide" innerGrid>The Traditional Colors of&nbsp;Japan</PageTitle>
<article class="col-start-1 col-end-17 grid md:col-end-8 xl:content-center" {...animation}> <article class="col-start-1 col-end-17 grid md:col-end-8 xl:content-center" {...animation}>