From f813e47401de5f98a5f70aace2c4a96f8a283c35 Mon Sep 17 00:00:00 2001 From: nito Date: Fri, 27 Nov 2026 12:15:08 +0900 Subject: [PATCH 1/2] Correct the news bar and revibe News page --- _includes/header.html | 1 + _includes/news.html | 6 +++--- _layouts/homelay.html | 15 ++------------- _pages/allnews.md | 2 +- css/main.scss | 40 ++++++---------------------------------- 5 files changed, 13 insertions(+), 51 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 02c396a..5ae41eb 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -13,6 +13,7 @@ + diff --git a/_layouts/homelay.html b/_layouts/homelay.html index d5d1c12..8303816 100644 --- a/_layouts/homelay.html +++ b/_layouts/homelay.html @@ -52,17 +52,6 @@ {{ content }} -
+
{% include news.html %} -
- - \ No newline at end of file +
\ No newline at end of file diff --git a/_pages/allnews.md b/_pages/allnews.md index 6aab076..7d26b1c 100644 --- a/_pages/allnews.md +++ b/_pages/allnews.md @@ -9,5 +9,5 @@ permalink: /allnews.html # News {% for article in site.data.news %} -

{{ article.date }}
{{ article.headline}}

+

{{ article.date }}
{{ article.headline | markdownify | remove: '

' | remove: '

' }}

{% endfor %} diff --git a/css/main.scss b/css/main.scss index 651b44e..7e37ab1 100644 --- a/css/main.scss +++ b/css/main.scss @@ -76,57 +76,29 @@ pubtit { text-align: center; } +// Homeページ: フッター直前に配置する通常のNewsセクション #newsid { - position: fixed; - left: 0; - right: 0; - bottom: 0; - width: 100%; - z-index: 1030; // navbar-fixed-topと同等 -} - -#newsid .well { - margin-bottom: 0; - border-radius: 0; - display: flex; - align-items: center; - gap: 16px; - padding: 10px 20px; + margin-top: 20px; } #newsid h4 { - margin: 0; - flex-shrink: 0; // 左端「News」ラベルは常に全表示、縮まない - white-space: nowrap; -} - -#newsid .news-items { - display: flex; - flex-direction: column; // 記事を縦に積む → 横スクロールが発生しない - gap: 4px; - flex: 1 1 auto; - min-width: 0; // これがないとflex子要素はoverflowしてくれない - max-height: 4.8em; // 約3行分の高さで頭打ちにする - overflow-y: auto; // 収まらない分は縦スクロールのみ - overflow-x: hidden; - padding: 4px 0; + margin-top: 0; } #newsid .news-item { text-align: left; - white-space: normal; // 幅に収まらない項目は折り返す(横スクロールさせない) + margin-bottom: 8px; word-break: break-word; } #newsid .news-item p { - display: inline; // markdownifyが挿入するpタグの余白をなくし1行に収める + display: inline; // markdownifyが挿入するpタグを日付と同じ行に表示 margin: 0; } #newsid .news-more { - flex-shrink: 0; // 右端「see all News」リンクも常に全表示 + text-align: right; margin: 0; - white-space: nowrap; } #newsid img { From baa6c25477fbc63fb18a63ea3a81471f0ce2bf62 Mon Sep 17 00:00:00 2001 From: nito Date: Fri, 27 Nov 2026 12:59:21 +0900 Subject: [PATCH 2/2] feat: add GitHub Actions workflow for building pull request previews --- .github/workflows/build-preview.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-preview.yaml b/.github/workflows/build-preview.yaml index 01287b5..9edff7c 100644 --- a/.github/workflows/build-preview.yaml +++ b/.github/workflows/build-preview.yaml @@ -18,7 +18,7 @@ permissions: jobs: build-preview: - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: # for debugging