Skip to content

Commit

Permalink
githubio : add nav and categories
Browse files Browse the repository at this point in the history
  • Loading branch information
miyeon396 committed Jan 2, 2022
1 parent b50429c commit e371504
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 3 deletions.
15 changes: 12 additions & 3 deletions _includes/left_navigation
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
{% endif %}
{% endfor %}
</ul>
<ul>
<!--Common 카테고리 글들을 모아둔 페이지인 /categories/common 주소의 글로 링크 연결-->
<!--category[1].size 로 해당 카테고리를 가진 글의 개수 표시-->
{% for category in site.categories %}
{% if category[0] == "Til" %}
<li><a href="/categories/til" class="">TIL ({{category[1].size}})</a></li>
{% endif %}
{% endfor %}
</ul>
<ul>
<!--Common 카테고리 글들을 모아둔 페이지인 /categories/common 주소의 글로 링크 연결-->
<!--category[1].size 로 해당 카테고리를 가진 글의 개수 표시-->
Expand All @@ -30,11 +39,11 @@
{% endif %}
{% endfor %}
</ul>
<span class="nav__sub-title">AWS</span>
<span class="nav__sub-title">Infra</span>
<ul>
{% for category in site.categories %}
{% if category[0] == "Aws" %}
<li><a href="/categories/aws" class="">Aws ({{category[1].size}})</a></li>
<li><a href="/categories/aws" class="">AWS ({{category[1].size}})</a></li>
{% endif %}
{% endfor %}
</ul>
Expand All @@ -55,7 +64,7 @@
{% endfor %}
</ul>

<span class="nav__sub-title">Git</span>
<span class="nav__sub-title">Version Control</span>
<ul>
{% for category in site.categories %}
{% if category[0] == "Git" %}
Expand Down
11 changes: 11 additions & 0 deletions _pages/categories/category-aws.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "AWS"
layout: archive
permalink: categories/aws
author_profile: true
sidebar_main: true
---


{% assign posts = site.categories.Aws %}
{% for post in posts %} {% include archive-single.html type=page.entries_layout %} {% endfor %}
11 changes: 11 additions & 0 deletions _pages/categories/category-git.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "GIT"
layout: archive
permalink: categories/git
author_profile: true
sidebar_main: true
---


{% assign posts = site.categories.Git %}
{% for post in posts %} {% include archive-single.html type=page.entries_layout %} {% endfor %}
11 changes: 11 additions & 0 deletions _pages/categories/category-github.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "GitHub"
layout: archive
permalink: categories/github
author_profile: true
sidebar_main: true
---


{% assign posts = site.categories.Github %}
{% for post in posts %} {% include archive-single.html type=page.entries_layout %} {% endfor %}
11 changes: 11 additions & 0 deletions _pages/categories/category-mysql.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "MySQL"
layout: archive
permalink: categories/mysql
author_profile: true
sidebar_main: true
---


{% assign posts = site.categories.Mysql %}
{% for post in posts %} {% include archive-single.html type=page.entries_layout %} {% endfor %}

0 comments on commit e371504

Please sign in to comment.