fix: improve responsive typography and page structure

This commit is contained in:
2026-11-14 01:09:51 +09:00
parent 2834141852
commit fda686078c
9 changed files with 83 additions and 14 deletions
-2
View File
@@ -5,6 +5,4 @@ title: First Post
is_draft: true
---
# This is our first Post!
Welcome to the first post ever on cobalt.rs!
+8 -7
View File
@@ -1,14 +1,15 @@
<!DOCTYPE html>
<html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta width="device-width" initial-scale="1.0">
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/css/vendor/simple.min.css">
<link rel="stylesheet" href="/assets/css/custom.css">
<title>{{ page.title }} | kamat's website</title>
</head>
<body>
<header>
<h1>kamat's website</h1>
<p class="site-title">kamat's website</p>
<nav>
<ul>
<li><a href="/">Home</a></li>
@@ -18,12 +19,12 @@
</nav>
</header>
<div id='content'>
<main id="content">
<article>
<h2>{{ page.title }}</h2>
<h1>{{ page.title }}</h1>
{{ page.content }}
</article>
</div>
</main>
<footer>
<small>Author: <a href='https://kamat.rumginger.org/profile.html'>KAMATAKI Yuya</a></small>
</footer>
+42
View File
@@ -0,0 +1,42 @@
/* Site-specific overrides; keep the vendored Simple.css unchanged. */
body > header .site-title {
max-width: 1200px;
margin: 1rem auto;
font-size: clamp(1.75rem, 1.25rem + 2vw, 3rem);
font-weight: 700;
line-height: 1.3;
}
#content {
min-width: 0;
line-height: 1.8;
}
#content h1 {
font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem);
line-height: 1.4;
}
#content h2 {
font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
line-height: 1.5;
}
#content h3 {
font-size: 1.25rem;
line-height: 1.5;
}
header nav a {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 44px;
padding: 0.4rem 0.9rem;
line-height: 1.4;
}
a:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
}
+9
View File
@@ -0,0 +1,9 @@
Simple.css v2.3.7
Upstream: https://github.com/kevquirk/simple.css
Commit: 7a0baa8906b3f76f58e14c6e496dd832b20ed946
Source: https://raw.githubusercontent.com/kevquirk/simple.css/7a0baa8906b3f76f58e14c6e496dd832b20ed946/simple.min.css
License: MIT (see simple.LICENSE.txt)
Keep simple.min.css unchanged. Put site-specific overrides in ../custom.css.
When updating Simple.css, choose a release, replace the stylesheet and license
from that release, update this file, and check desktop/mobile and light/dark views.
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Simple.css (Kev Quirk)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
File diff suppressed because one or more lines are too long
+1 -2
View File
@@ -1,10 +1,9 @@
---
title: Welcome to kamat's Website
published_date: 2023-10-08 12:49:19.577143497 +0000
layout: default.liquid
is_draft: false
---
# Welcome to kamat's Website
ようこそ。このサイトは鎌滝憂也の個人サイトです。
cobaltというRust製のSSGを使用して作成しています。
@@ -9,7 +9,7 @@ is_draft: false
当ポストは、ChatGPTのAgentモードを用いて作成したものです。
このセクションを除くすべての文章は、ChatGPTが生成したものを原文のまま記載しています。
# ここから、ChatGPTによる生成
## ここから、ChatGPTによる生成
こんにちは、ChatGPTエージェントです。今回、人間である鎖温さんから私にブログ記事の執筆依頼がありましたので、クラウド運用とCI/CD構築の経験を共有します。
-2
View File
@@ -5,8 +5,6 @@ layout: default.liquid
is_draft: false
---
# 仕事でObsidianを使う
仕事のノート用に[Obsidian](https://obsidian.md)を使用している。
かなり便利に使えているのだが、使いこなすためには工夫が必要であり、メリット・デメリットもはっきりしているのでここに記録しておく。