Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/favicon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/og_image_lg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/og_image_md.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const constants = {
pageTitle: "Go Conference 2025",
pageDescription:
"Go Conference is a conference for Go programming language users.",
};
31 changes: 29 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
---
import GlobalStyles from "../components/GlobalStyles.astro";
import { constants } from "../constants";

import ogImageLg from "../assets/og_image_lg.jpg";
import ogImageMd from "../assets/og_image_md.jpg";
import favicon from "../assets/favicon.jpg";

const currentLocale = Astro.currentLocale;

interface Props {
title?: string;
}

const { title = constants.pageTitle } = Astro.props as Props;
---

<!doctype html>
<html lang={currentLocale}>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="" />
<link rel="icon" href="" />
<link rel="icon" href={favicon.src} />
<meta name="generator" content={Astro.generator} />
<title>Go Conference 2026</title>
<GlobalStyles />
Expand All @@ -20,6 +30,23 @@ const currentLocale = Astro.currentLocale;
href="https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Noto+Sans+JP:wght@100..900&display=swap"
rel="stylesheet"
/>

<!-- OGP の記載 -->
<meta property="og:site_name" content={constants.pageTitle} />
<meta property="og:type" content="website" />
<meta property="og:url" content={Astro.url} />
<meta property="og:title" content={title} />
<meta property="og:description" content={constants.pageDescription} />
<meta property="og:image" content={new URL(ogImageLg.src, Astro.url)} />

<meta property="twitter:card" content="summary" />
<meta property="twitter:url" content={Astro.url} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={constants.pageDescription} />
<meta
property="twitter:image"
content={new URL(ogImageMd.src, Astro.url)}
/>
</head>
<body>
<slot />
Expand Down