index.html を用意 → ② GitHub Pages / Cloudflare Pages / Netlify のどれかで公開 → ③(任意)独自ドメインをつなぐ。git を入れておくと速いですこのまま公開しても見栄えする“超軽量”テンプレです。画像もフォントも外部依存なし。
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<title>My site</title>
<style>
:root{--bg:#0a0f12;--ink:#d7ffe8;--acc:#74ffcf;--mute:#89bfa6}
body{margin:0;background:var(--bg);color:var(--ink);font-family:ui-monospace,Consolas,monospace}
.wrap{max-width:900px;margin:auto;padding:24px}
h1{color:var(--acc);font-size:22px;margin:8px 0}
p{color:var(--mute);line-height:1.9}
a{color:#4dabff}
.card{border:1px solid rgba(116,255,207,.35);border-radius:12px;padding:14px;background:rgba(12,24,28,.85)}
</style>
</head>
<body>
<div class="wrap">
<h1>Hello, world!</h1>
<div class="card">最初の1ページが公開できました。</div>
</div>
</body>
</html>
my-site)。index.html を保存。git init
git add index.html
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/<YOUR_NAME>/my-site.git
git push -u origin main
main / Folder: /root → Save。https://<YOUR_NAME>.github.io/my-site/ が公開。Jekyllを使わない素のHTMLなら、ルートに .nojekyll(空ファイル)を置いてもOK。
my-site を選択。None / Output directory: /(ビルド不要)。index.htmlのみ)をドラッグ。username.github.io へCNAME。your-site.netlify.app へ。どのサービスもHTTPSは自動発行。反映に数分〜最大1時間程度かかることがあります。
<meta name="viewport"> が入っているか。alt をつけ、サイズを最適化。/about、/contact を追加。mailto: でOK。後でWebhookやサーバレスに移行。/blog/記事-slug/index.html を積む方式(本サイトと同じ)。