Skip to content

Commit

Permalink
タイトルに ' | Schoolink' の付与を自動化
Browse files Browse the repository at this point in the history
  • Loading branch information
akku1139 authored Dec 18, 2023
1 parent 26ec8ef commit 12d6e74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { title } = Astro.props;
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<title>{title} | Schoolink</title>
</head>
<body>
<slot />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const posts = [
]
---

<PageLayout title="Home | Schoolink">
<PageLayout title="Home">
<main>
<div class="bg-blue-50 my-2">
<div class="py-5 px-4">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/login.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import PageLayout from "../layouts/PageLayout.astro";
import { Login } from "../islands/login";
---

<PageLayout title="Login | Schoolink">
<PageLayout title="Login">
<Login client:load />
</PageLayout>
2 changes: 1 addition & 1 deletion src/pages/posts/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import PageLayout from '../../layouts/PageLayout.astro'
import { PostPage } from '../../islands/postpage'
---
<PageLayout title="Post | Schoolink">
<PageLayout title="Post">
<PostPage id={parseInt(Astro.params.id || '0')} client:load />
</PageLayout>

0 comments on commit 12d6e74

Please sign in to comment.