Skip to content

Commit 3fcc8f8

Browse files
committed
커스텀 레이아웃 적용 테스트
1 parent 7be9505 commit 3fcc8f8

6 files changed

Lines changed: 170 additions & 0 deletions

File tree

_config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@ theme: jekyll-theme-slate
22
title: 닷넷데브 홈페이지
33
description: 닷넷데브 홈페이지입니다.
44
url: https://dotnetdev.kr
5+
6+
# 글로벌 설정
7+
defaults:
8+
-
9+
scope:
10+
path: "" # 모든 파일에 적용
11+
values:
12+
layout: "default" # 모든 파일에 default 레이아웃 적용

_includes/footer.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<footer class="site-footer">
2+
<div class="footer-content">
3+
<p>&copy; 2023-{{ site.time | date: '%Y' }} 닷넷데브(dotnetdev.kr) - 모든 권리 보유</p>
4+
<p>
5+
<a href="/privacy/">개인정보처리방침</a> |
6+
<a href="/disclosures/">정보공시</a>
7+
</p>
8+
</div>
9+
</footer>
10+
11+
<style>
12+
.site-footer {
13+
margin-top: 40px;
14+
padding: 20px 0;
15+
border-top: 1px solid #ddd;
16+
text-align: center;
17+
font-size: 14px;
18+
color: #666;
19+
}
20+
21+
.footer-content {
22+
max-width: 960px;
23+
margin: 0 auto;
24+
}
25+
26+
.site-footer a {
27+
color: #0078d7;
28+
text-decoration: none;
29+
}
30+
31+
.site-footer a:hover {
32+
text-decoration: underline;
33+
}
34+
</style>

_includes/header.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<div class="site-header">
2+
<nav class="site-nav">
3+
<div class="nav-links">
4+
<a href="/" class="nav-link"></a>
5+
<a href="/organizers/" class="nav-link">운영진</a>
6+
<a href="/meetings/" class="nav-link">모임</a>
7+
<a href="/finance/" class="nav-link">재무현황</a>
8+
<a href="/legal/" class="nav-link">법규</a>
9+
<a href="/coc/" class="nav-link">행동강령</a>
10+
</div>
11+
</nav>
12+
</div>
13+
14+
<style>
15+
.site-header {
16+
background-color: #0078d7; /* Microsoft .NET 색상 */
17+
padding: 10px 0;
18+
margin-bottom: 20px;
19+
text-align: center;
20+
}
21+
22+
.site-nav {
23+
max-width: 960px;
24+
margin: 0 auto;
25+
}
26+
27+
.nav-links {
28+
display: flex;
29+
justify-content: center;
30+
flex-wrap: wrap;
31+
}
32+
33+
.nav-link {
34+
color: white;
35+
text-decoration: none;
36+
margin: 0 15px;
37+
padding: 5px 10px;
38+
font-weight: bold;
39+
}
40+
41+
.nav-link:hover {
42+
background-color: rgba(255, 255, 255, 0.2);
43+
border-radius: 5px;
44+
}
45+
46+
@media (max-width: 600px) {
47+
.nav-links {
48+
flex-direction: column;
49+
}
50+
51+
.nav-link {
52+
margin: 5px 0;
53+
}
54+
}
55+
</style>

_layouts/default.html

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<!DOCTYPE html>
2+
<html lang="ko">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
8+
{% if site.title and site.title != page.title %}
9+
<title>{{ page.title }} - {{ site.title }}</title>
10+
{% else %}
11+
<title>{{ site.title }}</title>
12+
{% endif %}
13+
{% seo %}
14+
</head>
15+
16+
<body>
17+
<!-- 상단 메뉴 -->
18+
{% include header.html %}
19+
20+
<!-- GitHub Pages Slate 테마의 기본 레이아웃 시작 -->
21+
<div id="header_wrap" class="outer">
22+
<header class="inner">
23+
<a id="forkme_banner" href="{{ site.github.repository_url }}">View on GitHub</a>
24+
<h1 id="project_title">{{ site.title | default: site.github.repository_name }}</h1>
25+
<h2 id="project_tagline">{{ site.description | default: site.github.project_tagline }}</h2>
26+
{% if site.show_downloads %}
27+
<section id="downloads">
28+
<a class="zip_download_link" href="{{ site.github.zip_url }}">Download this project as a .zip file</a>
29+
<a class="tar_download_link" href="{{ site.github.tar_url }}">Download this project as a tar.gz file</a>
30+
</section>
31+
{% endif %}
32+
</header>
33+
</div>
34+
35+
<div id="main_content_wrap" class="outer">
36+
<section id="main_content" class="inner">
37+
{{ content }}
38+
</section>
39+
</div>
40+
<!-- GitHub Pages Slate 테마의 기본 레이아웃 끝 -->
41+
42+
<!-- 푸터 저작권 정보 -->
43+
{% include footer.html %}
44+
45+
{% if site.google_analytics %}
46+
<script>
47+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
48+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
49+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
50+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
51+
ga('create', '{{ site.google_analytics }}', 'auto');
52+
ga('send', 'pageview');
53+
</script>
54+
{% endif %}
55+
</body>
56+
</html>

index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
layout: default
3+
title:
4+
---
5+
6+
## 닷넷데브에 오신 것을 환영합니다
7+
8+
닷넷데브 커뮤니티는 대한민국의 .NET 개발자들을 위한 비영리 커뮤니티입니다. 다양한 활동과 기술 공유를 통해 개발자 생태계를 지원하고 성장시키기 위해 노력하고 있습니다.
9+
10+
## 주요 링크
11+
12+
- [커뮤니티 포럼](https://forum.dotnetdev.kr)
13+
- [닷넷 데브 GitHub](https://github.com/dotnetdev-kr)
14+
15+
## 최근 활동
16+
17+
닷넷데브는 정기적으로 다양한 기술 세미나와 모임을 주최하고 있습니다. 세부 일정은 [모임 페이지](/meetings/)에서 확인하실 수 있습니다.
File renamed without changes.

0 commit comments

Comments
 (0)