Skip to content

Commit 1babe96

Browse files
authored
블로그 메뉴 추가 (PyTorchKorea#47)
* 블로그 메뉴 추가 * liquid 문법 수정
1 parent 4c25e1a commit 1babe96

24 files changed

+194
-37
lines changed

_config.yml

+29-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# Site settings
2+
lang: ko
23
title: "파이토치 한국 사용자 모임 (PyTorch Korea User Group)"
34
author: "PyTorch Korea User Group"
45
default_author: "PyTorch Korea User Group"
5-
description: "파이토치 한국 사용자 모임에 오신 것을 환영합니다. 딥러닝 프레임워크인 파이토치(PyTorch)를 사용하는 한국어 사용자들을 위해 문서를 번역하고 정보를 공유하고 있습니다."
6+
description: >-
7+
파이토치 한국 사용자 모임에 오신 것을 환영합니다.
8+
딥러닝 프레임워크인 파이토치(PyTorch)를 사용하는 한국어 사용자들을 위해 문서를 번역하고 정보를 공유하고 있습니다.
69
latest_version: 1.0
710
timezone: Asia/Seoul
811
url: "https://pytorch.kr"
912
baseurl: ""
1013
plugins:
14+
- jekyll-paginate-v2
1115
- jekyll-redirect-from
1216
- jekyll-autoprefixer
1317
- jekyll-feed
@@ -52,7 +56,10 @@ include: [
5256
_tensor_str.html,
5357
_utils.html,
5458
]
55-
keep_files: [vendor/assets, docs/master/_static/js/vendor/]
59+
keep_files: [
60+
vendor/assets,
61+
docs/master/_static/js/vendor/
62+
]
5663
repository: PyTorchKorea/pytorch.kr
5764
external_urls:
5865
org_www: https://pytorch.org
@@ -61,31 +68,46 @@ external_urls:
6168
hub_template: https://github.com/pytorch/hub/blob/master/docs/template.md
6269
previous_pytorch_versions: https://pytorch.kr/get-started/previous-versions/
6370
site_tutorials: https://tutorials.pytorch.kr/
71+
site_blog: https://pytorch.kr/blog
6472
site_community: https://discuss.pytorch.kr/
6573
site_hub: https://pytorch.kr/hub
6674
repo_tutorials: https://github.com/PyTorchKorea/tutorials-kr
6775
repo_hub: https://github.com/PyTorchKorea/hub-kr
6876
repo_www: https://github.com/PyTorchKorea/pytorch.kr
6977
repo_org: https://github.com/PyTorchKorea
70-
livereload: false
78+
livereload: true
7179
markdown: kramdown
7280
highlighter: rouge
7381
collections:
7482
about:
7583
output: false
84+
posts:
85+
output: true
86+
permalink: /blog/:year/:title/
7687
contributors:
7788
output: true
89+
features:
90+
output: false
7891
get_started:
7992
output: true
8093
hub:
8194
output: true
8295
permalink: /hub/:title/
83-
resources:
84-
output: false
85-
features:
86-
output: false
8796
maintainers:
8897
output: false
8998
news:
9099
output: true
91100
permalink: /news/:title/
101+
resources:
102+
output: false
103+
pagination:
104+
enabled: true
105+
per_page: 7
106+
permalink: "/blog/:num/"
107+
title: ":title | 전체 :max 페이지 중 :num 페이지"
108+
limit: 0
109+
sort_field: "date"
110+
sort_reverse: true
111+
trail:
112+
before: 2
113+
after: 2

_includes/main_menu.html

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
<a href="{{ site.baseurl }}/get-started">시작하기</a>
55
</li>
66

7+
<li class="main-menu-item">
8+
<a href="{{ site.baseurl }}/blog">블로그</a>
9+
</li>
10+
711
<li class="main-menu-item">
812
<a href="{{ site.external_urls.site_tutorials }}" target="_self">튜토리얼</a>
913
</li>

_includes/mobile_menu.html

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
<a href="{{ site.baseurl }}/get-started">시작하기</a>
1818
</li>
1919

20+
<li class="main-menu-item">
21+
<a href="{{ site.baseurl }}/blog">블로그</a>
22+
</li>
23+
2024
<li class="main-menu-item">
2125
<a href="{{ site.external_urls.site_tutorials }}">튜토리얼</a>
2226
</li>

_includes/pagination_buttons.html

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<div class="d-flex justify-content-center">
2+
<ul class="pagination">
3+
{% if paginator.previous_page %}
4+
<li class="page-item">
5+
{% if page.title contains 'Blog' %}
6+
<a class="page-link" href="{{ site.baseurl }}{{ paginator.previous_page_path }}">이전</a>
7+
{% else %}
8+
<a class="page-link" href="{{ site.baseurl }}/{{ paginator.previous_page_path }}">이전</a>
9+
{% endif %}
10+
</li>
11+
{% else %}
12+
<li class="page-item disabled">
13+
<a class="page-link">이전</a>
14+
</li>
15+
{% endif %}
16+
17+
{% if paginator.next_page %}
18+
{% if page.title contains 'Blog' %}
19+
<li class="page-item"><a class="page-link" href="{{ site.baseurl }}{{ paginator.next_page_path }}">다음</a>
20+
{% else %}
21+
<li class="page-item"><a class="page-link" href="{{ site.baseurl }}/{{ paginator.next_page_path }}">다음</a>
22+
{% endif %}
23+
</li>
24+
{% else %}
25+
<li class="page-item disabled">
26+
<a class="page-link">다음</a>
27+
</li>
28+
{% endif %}
29+
</ul>
30+
</div>

_layouts/blog.html

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44

55
<body class="{{ page.body-class }}">
@@ -16,16 +16,15 @@
1616
<div class="jumbotron jumbotron-fluid">
1717
<div class="container">
1818
{% for post in posts limit:1 %}
19-
<p class="featured-post">Featured Post</p>
19+
<p class="featured-post">추천 게시물</p>
2020
<h1 class="blog-index-title">
2121
<a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
2222
</h1>
23-
<p class="featured-blog-preview">{{ post.excerpt | strip_html | truncate: 100 }}</p>
23+
<p class="featured-blog-preview">{{ post.excerpt | strip_html | truncate: 150 }}</p>
2424

2525
<a href="{{ site.baseurl }}{{ post.url }}" class="btn btn-lg with-right-arrow">
26-
Read More
26+
더 읽기
2727
</a>
28-
2928
{% endfor %}
3029
</div>
3130
</div>
@@ -46,7 +45,7 @@ <h4>
4645
<img src="{{ post.image }}" class="img-fluid">
4746
</div>
4847
<a href="{{ site.baseurl }}{{ post.url }}" class="btn btn-lg with-right-arrow">
49-
Read More
48+
더 읽기
5049
</a>
5150
</div>
5251
{% endfor %}
@@ -62,5 +61,4 @@ <h4>
6261
{% include footer.html %}
6362

6463
</body>
65-
6664
</html>

_layouts/blog_detail.html

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44

55
<body class="blog">
@@ -27,21 +27,28 @@ <h1>
2727
<img src="{{ site.baseurl }}/assets/images/logo-icon.svg" class="img-fluid author-icon">
2828
<article class="pytorch-article">
2929
<p class="author">
30-
by
31-
{% if page.author %}
32-
{{ page.author }}
30+
{% if page.category contains 'translation' or page.category contains 'pytorch.org' %}
31+
{% if page.author %}
32+
작성: {{ page.author }}, 번역: {{ site.default_author }}
33+
{% else %}
34+
작성: PyTorch Team, 번역: {{ site.default_author }}
35+
{% endif %}
3336
{% else %}
34-
{{ site.default_author }}
37+
작성: {{ site.default_author }}
3538
{% endif %}
3639
</p>
40+
{% if page.category contains 'translation' || page.category contains 'pytorch.org' %}
41+
<p class="translation-description">
42+
이 글은 <a href="https://pytorch.org/blog/">PyTorch 공식 블로그</a>의 글을 번역한 것입니다.
43+
번역 글은 원문을 함께 표시합니다. 원문으로 이동하시려면 <a href="{{ page.org_link }}">여기</a>를 클릭하세요.
44+
</p>
45+
{% endif %}
3746
{{ content }}
3847
</article>
3948
</div>
4049
</div>
4150
</div>
4251

43-
<!-- {% include similar_posts_module.html %} -->
4452
{% include footer.html %}
4553
</body>
46-
4754
</html>

_layouts/deep_learning.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44
<div class="container-fluid header-holder">
55
<div class="container">

_layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="ko">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44
<body class="{{ page.body-class }}">
55
{% include tag_manager_script.html %}

_layouts/docs_redirect.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE HTML>
2-
<html lang="ko">
2+
<html lang="{{ site.lang }}">
33
<head>
44
<meta charset="UTF-8">
55
<meta http-equiv="refresh" content="1; url={{ page.redirect_url }}">

_layouts/general.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44

55
<body class="general">

_layouts/general_with_newline.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44
<body class="{{ page.body-class }}">
55
{% include tag_manager_script.html %}

_layouts/get_started.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44
<body class="{{ page.body-class }}">
55
{% include tag_manager_script.html %}

_layouts/hub_detail.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44
<body class="{{ page.body-class }} hub-detail">
55
{% include tag_manager_script.html %}

_layouts/hub_index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44
<body class="{{ page.body-class }} hub-index">
55
{% include tag_manager_script.html %}

_layouts/marketo_email.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44

55
<body class="general">

_layouts/mobile.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="{{ site.lang }}">
33
{% include head.html %}
44
<body class="{{ page.body-class }}">
55
{% include tag_manager_script.html %}
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
layout: blog_detail
3+
title: "파이토치 문서콘(Docathon) 2023 개최 안내"
4+
category: ["pytorch.org", "translation"]
5+
org_link: https://pytorch.org/blog/announcing-docathon/
6+
---
7+
8+
![PyTorch Docathon](/assets/blog/docathon-cover.jpg){:style="max-height:800px; width:100%"}
9+
10+
첫 번째 파이토치 문서콘(Docathon)을 개최하게 되어 매우 기쁩니다! 문서콘은 커뮤니티의 도움을 받아 문서를 개선하는 데 초점을 맞춘 해커톤 형식의 이벤트입니다. 문서는 모든 기술에서 매우 중요한 요소이며, 문서를 개선함으로써 사용자가 PyTorch를 더 쉽게 시작하고, 기능을 효과적으로 사용하는 방법을 이해하도록 돕고, 궁극적으로 머신러닝 분야의 연구부터 생산에 이르는 과정을 가속화할 수 있습니다.
11+
> We are excited to announce the first ever PyTorch Docathon! The Docathon is a hackathon-style event focused on improving the documentation by enlisting the help of the community. Documentation is a crucial aspect of any technology and by improving the documentation, we can make it easier for users to get started with PyTorch, help them understand how to use its features effectively, and ultimately accelerate research to production in the field of machine learning.
12+
13+
14+
## 참여해야 하는 이유 / WHY PARTICIPATE
15+
16+
### 낮은 진입 장벽 / Low Barrier to Entry
17+
18+
많은 오픈소스 프로젝트는 해커톤 이벤트에 참여하기 위해 코드베이스에 대한 광범위한 지식과 프로젝트에 대한 사전 기여가 필요합니다. 반면에 문서톤(Docathon)은 초보자를 위해 설계되었습니다. Python에 대한 친숙함, PyTorch 및 ML에 대한 기본 지식이 있어야 합니다. 하지만 걱정하지 마세요! 웹사이트 이슈와 같은 일부 주제는 이마저도 필요하지 않으니까요.
19+
> Many open-source projects require extensive knowledge of the codebase and prior contributions to the project to participate in any sort of hackathon events. The Docathon, on the other hand, is designed for newcomers. We do expect familiarity with Python, basic knowledge of PyTorch, and ML. But don't fret, there are some tasks that are related to website issues that won't require even that.
20+
21+
22+
### 가시적인 결과 / Tangible Results
23+
24+
문서톤(Docathon)의 가장 좋은 점 중 하나는 노력의 결과를 실시간으로 확인할 수 있다는 것입니다. 문서를 개선하는 것은 프로젝트의 사용성과 접근성에 큰 영향을 미칠 수 있으며, 이러한 개선 사항을 직접 확인할 수 있습니다. 또한 가시적인 성과는 계속 기여할 수 있는 큰 동기 부여가 되기도 합니다.
25+
> One of the best things about the Docathon is that you can see the results of your efforts in real time. Improving documentation can have a huge impact on a project's usability and accessibility and you'll be able to see those improvements firsthand. Plus having tangible results can be a great motivator to keep contributing.
26+
27+
28+
### 협업 환경 / Collaborative Environment
29+
30+
문서톤(Docathon)은 협업 이벤트이므로 다른 기여자 및 PyTorch 유지 관리자와 함께 문서 개선 작업을 할 수 있는 기회가 주어집니다. 다른 사람들로부터 배우고, 아이디어를 공유하고, 인맥을 쌓을 수 있는 좋은 기회입니다.
31+
> The Docathon is a collaborative event which means you'll have the opportunity to work with other contributors and PyTorch maintainers on improving the documentation. This can be a great way to learn from others, share ideas, and build connections.
32+
33+
34+
### 학습 기회 / Learning Opportunities
35+
36+
마지막으로, 파이토치 전문가가 아니더라도 문서톤(Docathon)은 훌륭한 학습 경험이 될 수 있습니다. 파이토치 모듈들을 둘러보고 일부 튜토리얼들은 CI와 여러분의 컴퓨터에서 직접 테스트해볼 수 있습니다.
37+
> Finally, even if you are not an expert in PyTorch, the Docathon can be a great learning experience. You'll have the opportunity to explore the PyTorch modules and test some of the tutorials on your machine as well as in the CI.
38+
39+
40+
## 이벤트 상세 / EVENT DETAILS
41+
42+
* **5월 31일**: 문서톤(Docathon) 시작
43+
* **5월 31일 - 6월 11일**: 제출 및 피드백
44+
* **6월 12일 - 6월 13일**: 최종 검토
45+
* **6월 15일**: 수상자 발표
46+
> * **May 31**: Kick-off
47+
> * **May 31 - June 11**: Submissions and Feedback
48+
> * **June 12 - June 13**: Final Reviews
49+
> * **June 15**: Winner Announcements
50+
51+
문서톤(Docathon)에 대한 자세한 내용은 5월 31일 킥오프 스트림에서 발표될 예정입니다.
52+
> Details for the Docathon to be announced at the kick-off stream on May 31.
53+
54+
올해 행사에 관심이 있으신가요? [**지금 등록**](https://community.linuxfoundation.org/e/mmbqqb/)하세요!
55+
> Please register to join this year’s event: [**RSVP**](https://community.linuxfoundation.org/e/mmbqqb/)

_sass/base_styles.scss

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ a, .btn {
176176

177177
&.blog-background {
178178
background-image: url($baseurl + "/assets/images/blog-background.jpg");
179+
background-color: #2F2F2F;
180+
background-blend-mode: saturation plus-darker;
179181
}
180182

181183
&.mobile-background {

0 commit comments

Comments
 (0)