aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-06-25 23:58:32 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-06-25 23:58:32 +0900
commit7bf67d1074e396fbc7190649f1b73f3ea92cdd79 (patch)
tree4f874af49b85a38064f42fdf70e740f4e98fad69 /src
parent1e8192d3fbf3d5bde25867665a9ccd2e5ba13b81 (diff)
AGENTS.md更新 + /og/ に画像一覧ページを追加
- AGENTS.md: OGP画像生成、ソーシャル共有、見出しアンカーの項目を追記 - /og/ に16枚のOGP画像一覧を表示するインデックスページを作成 - 403エラー回避のため、静的なスラッグ一覧から生成
Diffstat (limited to 'src')
-rw-r--r--src/pages/og/index.astro74
1 files changed, 74 insertions, 0 deletions
diff --git a/src/pages/og/index.astro b/src/pages/og/index.astro
new file mode 100644
index 0000000..8416098
--- /dev/null
+++ b/src/pages/og/index.astro
@@ -0,0 +1,74 @@
+---
+const slugs = [
+ "index",
+ "jisseki",
+ "policy",
+ "support",
+ "contact",
+ "whisper-to-ai-moji-okoshi",
+ "koubunsyo-kanri",
+ "ijime-judai-jitai",
+ "fukushi-shisetsu-gyakutai",
+ "aiki-kouen",
+ "joutyo-koteikyu",
+ "kajo-seigen-kanwa",
+ "saresio-kaihatu",
+ "vaccine-kyuusai-tekiseika",
+ "dislexia-taiou",
+ "ippan-situmon",
+];
+---
+
+<!DOCTYPE html>
+<html lang="ja">
+ <head>
+ <meta charset="UTF-8" />
+ <title>OGP 画像一覧</title>
+ <style>
+ body {
+ font-family: sans-serif;
+ max-width: 800px;
+ margin: 2rem auto;
+ padding: 0 1rem;
+ background: #1e293b;
+ color: #e2e8f0;
+ }
+ h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
+ .grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
+ gap: 1rem;
+ }
+ .card {
+ background: #334155;
+ border-radius: 8px;
+ padding: 0.75rem;
+ text-decoration: none;
+ color: #e2e8f0;
+ transition: background 0.2s;
+ }
+ .card:hover { background: #475569; }
+ .card img {
+ width: 100%;
+ border-radius: 4px;
+ margin-bottom: 0.5rem;
+ border: 1px solid #475569;
+ }
+ .card span {
+ font-size: 0.8rem;
+ word-break: break-all;
+ }
+ </style>
+ </head>
+ <body>
+ <h1>OGP 画像一覧({slugs.length} 枚)</h1>
+ <div class="grid">
+ {slugs.map((slug) => (
+ <a href={`/og/${slug}.png`} class="card">
+ <img src={`/og/${slug}.png`} alt={slug} loading="lazy" />
+ <span>{slug}.png</span>
+ </a>
+ ))}
+ </div>
+ </body>
+</html>