Skip to content

feat/add-page-titles-for-browser-tabs#42

Open
pirasan023 wants to merge 2 commits intocoderdojo-japan:mainfrom
pirasan023:fix/add-title-to-all-pages
Open

feat/add-page-titles-for-browser-tabs#42
pirasan023 wants to merge 2 commits intocoderdojo-japan:mainfrom
pirasan023:fix/add-title-to-all-pages

Conversation

@pirasan023
Copy link
Collaborator

@pirasan023 pirasan023 commented Feb 8, 2026

概要

添付写真のように、全てのページでページタイトルが表示されるようになりました。
Screenshot 2026-02-08 at 11 00 02 PM

変更部分

  • ヒーローのタイトル変数名を、hero_title → title, hero_subtitle → subtitleと変更し、titleの部分をページタイトルとしています。

Copilot AI review requested due to automatic review settings February 8, 2026 14:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

各ページのフロントマターに title/subtitle を追加し、head.html 側の <title>(ブラウザタブ)にページタイトルが出るようにする変更です。合わせて、ヒーロー表示の参照を新旧キー両対応にしています。

Changes:

  • 各ページのフロントマターを hero_title/hero_subtitletitle/subtitle に移行
  • _layouts/default.html のヒーロー表示を hero_* が無い場合に title/subtitle を参照するよう更新
  • sponsor-smartone.md(スポンサー個別ページ)を新規追加、404.html のタグ不整合を修正

Reviewed changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
travel-support.md title/subtitle へ移行してタブタイトル表示を有効化
staff.md 同上
sponsors.md 同上
sponsor-smartone.md スポンサー個別ページを新規追加(title/subtitle あり)
register.md 同上(redirect_from 維持)
privacy.md 同上(redirect_from 維持)
news.md 同上
events.md 同上
display-rules.md 同上
contact.md 同上
conduct.md 同上
about.md 同上
_layouts/default.html ヒーロー表示を新旧キー両対応に更新
_archives/apply.md title/subtitle へ移行
404.html title/subtitle へ移行+見出しタグの閉じ忘れ修正

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +5
---
layout: default
title: "株式会社SmartOne"
subtitle: "Gold Sponsor"
---
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description only mentions renaming hero_title/hero_subtitle to title/subtitle, but this PR also adds a new sponsor page. Please either update the PR description to include this new page (and intended URL/linking), or move it to a separate PR to keep the change focused.

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +11
<h1 class="hero-title">{{ page.hero_title | default: page.title }}</h1>
<p class="hero-subtitle">{{ page.hero_subtitle | default: page.subtitle }}</p>
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this PR is migrating pages to title/subtitle, the fallback order here should prefer the new keys first to avoid mismatches when both old and new front-matter fields are present. Consider switching to page.title | default: page.hero_title and page.subtitle | default: page.hero_subtitle.

Suggested change
<h1 class="hero-title">{{ page.hero_title | default: page.title }}</h1>
<p class="hero-subtitle">{{ page.hero_subtitle | default: page.subtitle }}</p>
<h1 class="hero-title">{{ page.title | default: page.hero_title }}</h1>
<p class="hero-subtitle">{{ page.subtitle | default: page.hero_subtitle }}</p>

Copilot uses AI. Check for mistakes.
subtitle: "Gold Sponsor"
---

<img src="/img/contests/sponsor-logos/smartone.svg" alt="SmartOne-Logo" class="pt-12 pb-12 mx-auto mb-8 max-h-100">
Copy link

Copilot AI Feb 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max-h-100 is not defined in the repo’s CSS and isn’t a standard Tailwind utility, so this class will have no effect and the sponsor logo may render at an unintended size. Use a valid Tailwind class (e.g., max-h-24/max-h-32) or an arbitrary value (max-h-[100px]), or add a corresponding CSS rule.

Suggested change
<img src="/img/contests/sponsor-logos/smartone.svg" alt="SmartOne-Logo" class="pt-12 pb-12 mx-auto mb-8 max-h-100">
<img src="/img/contests/sponsor-logos/smartone.svg" alt="SmartOne-Logo" class="pt-12 pb-12 mx-auto mb-8 max-h-[100px]">

Copilot uses AI. Check for mistakes.
@yasulab
Copy link
Member

yasulab commented Feb 10, 2026

@pirasan023 こちらご都合の良いタイミングでマージしていただき、念のためデプロイ後の本番環境でもご確認いただけると良さそうです!! (影響範囲が比較的大きい PR だと思うので、本 PR については念のため本番環境でも確認しておいた方が良さそう)✅✨ cc/ @ta1yo1022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants