Skip to content

Commit 5c5de0c

Browse files
committed
메인 페이지 및 블로그 메뉴 개선
- 메인 페이지 내 최근 블로그 게시물 표시 기능 구현 - 메인 페이지 내 커뮤니티 참여 유도 섹션 추가 - 블로그 레이아웃 및 스타일 개선 - Bootstrap 및 jQuery 버전 업데이트
1 parent 31a6f22 commit 5c5de0c

File tree

14 files changed

+477
-209
lines changed

14 files changed

+477
-209
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
.bundle
99
.sass_cache
1010
yarn.lock
11+
/_coc/
1112
/_site/
1213
/.idea/
1314
/.jekyll-metadata
1415
/.vscode/
1516
/.netlify/
1617
/assets/hub
1718
*.old
19+
.jekyll-cache
20+
.playwright-mcp

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2>한국어 튜토리얼</h2>
1414
</div>
1515

1616
<div class="col-md-4 text-center">
17-
<h2>커뮤니티</h2>
17+
<h2>한국어 커뮤니티</h2>
1818
<p>다른 사용자들과 의견을 나누고, 도와주세요!</p>
1919
<a class="with-right-arrow" href="{{ site.external_urls.site_community }}">커뮤니티로 이동</a>
2020
</div>

_includes/main_menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a href="{{ site.baseurl }}/get-started">시작하기</a>
55
</li>
66

7-
<li class="main-menu-item">
7+
<li class="main-menu-item {% if current[1] == 'blog' %}active{% endif %}">
88
<a href="{{ site.baseurl }}/blog">블로그</a>
99
</li>
1010

_includes/mobile_menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<a href="{{ site.baseurl }}/get-started">시작하기</a>
1818
</li>
1919

20-
<li class="main-menu-item">
20+
<li class="main-menu-item {% if current[1] == 'blog' %}active{% endif %}">
2121
<a href="{{ site.baseurl }}/blog">블로그</a>
2222
</li>
2323

_layouts/blog.html

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,9 @@
1515

1616
<div class="jumbotron jumbotron-fluid">
1717
<div class="container">
18-
{% for post in posts limit:1 %}
19-
<p class="featured-post">추천 게시물</p>
20-
<h1 class="blog-index-title">
21-
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
22-
</h1>
23-
<p class="featured-blog-preview">{{ post.excerpt | strip_html | escape | truncate: 150 }}</p>
24-
25-
<a href="{{ site.baseurl }}{{ post.url }}" class="btn btn-lg with-right-arrow">
26-
더 읽기
27-
</a>
28-
{% endfor %}
18+
<h1>블로그</h1>
19+
<p class="lead">파이토치 한국 사용자 모임에서 공유하는 최신 기술 동향, 튜토리얼, 연구 성과 및 커뮤니티 소식을 만나보세요.
20+
</p>
2921
</div>
3022
</div>
3123

@@ -35,9 +27,6 @@ <h1 class="blog-index-title">
3527
<div class="row blog-vertical">
3628

3729
{% for post in posts %}
38-
{% if forloop.first %}
39-
{% continue %}
40-
{% endif %}
4130
<div class="vertical-blog-container">
4231
<div class="col-md-4">
4332
<p class="blog-date">{{ post.date | date: '%B %d, %Y' }}</p>
@@ -48,8 +37,8 @@ <h4>
4837
<p>{{ post.excerpt | strip_html | strip | truncate: 250 | escape }}</p>
4938
<!-- <img src="{{ post.image }}" class="img-fluid"> -->
5039
</div>
51-
<a href="{{ site.baseurl }}{{ post.url }}" class="btn btn-lg with-right-arrow">
52-
읽기
40+
<a href="{{ site.baseurl }}{{ post.url }}" class="btn">
41+
읽어보기 →
5342
</a>
5443
</div>
5544
{% endfor %}

_layouts/default.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,17 @@
55
{% include tag_manager_script.html %}
66
{% include header.html %}
77

8-
<div class="main-background {{ page.background-class }}"></div>
8+
<div class="main-background {{ page.background-class }}">
9+
{% if page.background-class == 'home-page-background' %}
10+
<div class="wave-divider">
11+
<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
12+
<path d="M0,50L60,45C120,40 240,30 360,35C480,40 600,60 720,70C840,80 960,80 1080,75C1140,72.5 1170,67.5 1185,65L1200,62.5L1200,200L0,200Z" fill="#ffffff" fill-opacity="0.3"></path>
13+
<path d="M0,20L80,25C160,30 320,40 480,50C640,60 800,70 960,65C1040,62.5 1120,52.5 1160,47.5L1200,42.5L1200,200L0,200Z" fill="#ffffff" fill-opacity="0.5"></path>
14+
<path d="M0,90L50,88C100,86 200,82 300,85C400,88 500,95 600,92C700,89 800,77 900,82C1000,87 1100,93 1150,96L1200,100L1200,200L0,200Z" fill="#ffffff" fill-opacity="1"></path>
15+
</svg>
16+
</div>
17+
{% endif %}
18+
</div>
919

1020
{{ content }}
1121

_sass/base_styles.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,3 +656,28 @@ body.general .main-content-wrapper {
656656
margin-top: 100px;
657657
}
658658
}
659+
660+
661+
662+
.wave-divider {
663+
position: absolute;
664+
bottom: 0;
665+
left: 0;
666+
width: 100%;
667+
height: 80px;
668+
z-index: 10;
669+
overflow: hidden;
670+
671+
@include desktop {
672+
height: 120px;
673+
}
674+
675+
svg {
676+
position: absolute;
677+
bottom: 0;
678+
left: 0;
679+
width: 100%;
680+
height: 100%;
681+
transform: translateY(1px);
682+
}
683+
}

0 commit comments

Comments
 (0)