-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from hayato-osh/feature/seo
最低限の SEO の設定
- Loading branch information
Showing
10 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
--- | ||
import { config } from "@/config"; | ||
import ThemeIcon from "./ThemeIcon.astro"; | ||
--- | ||
<header class="h-8 flex items-center justify-between"> | ||
<nav> | ||
<a href="/tags">tags</a> | ||
</nav> | ||
<ThemeIcon /> | ||
<header class="h-12 flex items-center justify-between"> | ||
<a href="/" class="font-bold">{config.website}</a> | ||
<div class="grid grid-cols-[1fr_max-content] items-center gap-2 sm:gap-4"> | ||
<nav> | ||
<a href="/tags" class="underline">tags</a> | ||
</nav> | ||
<ThemeIcon /> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const author = "fastman"; | ||
export const config = { | ||
title: `${author} のブログ`, | ||
description: `${author} のブログです`, | ||
website: "blog.fastman.dev", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { config } from "@/config"; | ||
|
||
export const generateTitle = (leftTitle: string, rightTitle = config.title) => | ||
`${leftTitle} | ${rightTitle}`; |