Skip to content

Commit 2fe323f

Browse files
committed
refactor: TOP ページ用のレイアウトを分割
1 parent cb213bd commit 2fe323f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

_layouts/top.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% if page_title or page_title == '' %}
2-
{% assign page_title = page.title %}
2+
{% assign page_title = page.title %}
33
{% endif %}
44
{% if page_subtitle or page_subtitle == '' %}
5-
{% assign page_subtitle = page.subtitle %}
5+
{% assign page_subtitle = page.subtitle %}
66
{% endif %}
77
{% assign page_title = page.title %}
88
<!DOCTYPE html>
@@ -11,12 +11,8 @@
1111

1212
<body class="bg-linear-106 from-[#9d1e29] to-[#d4932a] text-[#262626] font-bold tracking-wider min-h-dvh p-4 flex">
1313
<div class="bg-white rounded-2xl min-h-full flex-grow flex flex-col">
14-
<div class="bg-[url(/img/2025/top/hero-section-background.png)] bg-contain">
15-
{% include header.html %}
16-
17-
<div class="flex-grow">
18-
{{ content }}
19-
</div>
14+
<div class="flex-grow">
15+
{{ content }}
2016
</div>
2117

2218
{% include footer.html %}

img/2025/top/header-background.png

302 KB
Loading

index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
22
layout: top
33
---
4-
{% include top/sections/hero.html %}
4+
<div class="bg-white bg-[url(/img/2025/top/header-background.png)] bg-size-contain bg-no-repeat bg-top bg-center rounded-2xl min-h-full flex-grow flex flex-col">
5+
{% include header.html %}
6+
7+
{% include top/sections/hero.html %}
8+
</div>

0 commit comments

Comments
 (0)