Skip to content
プロジェクト

jaxx2104/gatsby-starter-bootstrap

GitHubで見る

概要

A Bootstrap 5 starter for Gatsby — fast, accessible, ready to fork.

Web・アプリ開発

この数値の測り方

できること

  • Gatsby 5.16+ with React 19 and TypeScript (strict).
  • Bootstrap 5.3 via Sass — no jQuery, no popper.
  • Markdown blog with Prism syntax highlighting.
  • gatsby-plugin-image for responsive images.

計測したスター増加

24時間
0
7日間
-1
15日間
-1
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Gatstrap

A Bootstrap 5 starter for Gatsby — fast, accessible, and ready to fork.

CI

Gatstrap demo

Features

  • Gatsby 5.16+ with React 19 and TypeScript (strict).
  • Bootstrap 5.3 via Sass — no jQuery, no popper.
  • Markdown blog with Prism syntax highlighting.
  • gatsby-plugin-image for responsive images.
  • Gatsby <Head> API for per-page SEO.
  • Lighthouse mobile 95+ on Performance, Accessibility, Best Practices, SEO.

Quick start

gatsby new my-blog https://github.com/jaxx2104/gatsby-starter-bootstrap
cd my-blog
pnpm install
pnpm develop

Open http://localhost:8000.

Configuration

Edit gatsby-config.ts. The siteMetadata block is the single source of truth for the navbar title, the per-page SEO <Head>, and the PWA manifest:

const siteMetadata = {
  title: 'Your Site',
  description: 'Your description.',
  siteUrl: 'https://example.com',
  author: 'Your Name',
  twitter: 'your_handle',
}

Customization

Theme tokens are at src/scss/colors.scss and src/scss/fonts.scss. Override Bootstrap 5 Sass variables there before the bootstrap import in src/scss/gatstrap.scss.

To swap the brand color:

// src/scss/colors.scss
$purple: #00bcd4;

Writing posts

Add a folder under content/posts/:

content/posts/2026-06-01-my-post/
  index.md
  hero.jpg

index.md frontmatter:

---
layout: post
title: My Post
path: /my-post
category: Notes
tags: [example]
description: A one-sentence description.
date: 2026-06-01
---

Scripts

Command Description
pnpm develop Start the dev server
pnpm build Production build to public/
pnpm typecheck Run TypeScript strict mode checks
pnpm lint Run Biome lint
pnpm lint:fix Run Biome check (lint + format) with fixes
pnpm format Run Biome format

Contributing

  1. Fork and clone.
  2. pnpm install to install (Node 22).
  3. pnpm typecheck, pnpm lint, and pnpm build must pass before opening a pull request.
  4. Pre-commit hooks run lint-staged automatically.
  5. git push runs pnpm typecheck via a pre-push hook. Use git push --no-verify to skip during work-in-progress pushes.
  6. SCSS and Markdown files are not formatted by tooling — follow the .editorconfig settings (2-space indent, LF line endings, UTF-8).

License

Released under the 0BSD License.

関連プロジェクトを探す

読み込み中…