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 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 }} - {{ 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 {