Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

category #22

Open
wants to merge 38 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5e1820e
Update index.html
NamSuJi Jul 25, 2019
39b4d34
Update _config.yml
NamSuJi Jul 25, 2019
a64330d
Update index.html
NamSuJi Jul 25, 2019
9e04f55
Update index.html
NamSuJi Jul 25, 2019
5e4d8ba
Create category.html
NamSuJi Jul 25, 2019
cba16e8
Update _config.yml
NamSuJi Jul 25, 2019
11a8ba2
Update _config.yml
NamSuJi Jul 25, 2019
aa98c4c
Update _config.yml
NamSuJi Jul 26, 2019
68c3475
Delete category.html
NamSuJi Jul 26, 2019
dd626c7
Create category.html
NamSuJi Jul 26, 2019
dbf83f3
Update page_content.html
NamSuJi Jul 26, 2019
723383c
Create category
NamSuJi Jul 26, 2019
79d47e0
Delete category
NamSuJi Jul 26, 2019
0053a24
Create Github.md
NamSuJi Jul 26, 2019
c558f3f
Update Github.md
NamSuJi Jul 26, 2019
d77a3c6
Create header2.html
NamSuJi Jul 26, 2019
f714868
Update header2.html
NamSuJi Jul 26, 2019
b0c525a
Update default.html
NamSuJi Jul 26, 2019
ed5b93a
Update default.html
NamSuJi Jul 26, 2019
15c87c5
Update Github.md
NamSuJi Jul 26, 2019
542802b
Create Java.md
NamSuJi Jul 26, 2019
415dad4
Create Python.md
NamSuJi Jul 26, 2019
14d3489
Update default.html
NamSuJi Jul 26, 2019
7984218
Update default.html
NamSuJi Jul 26, 2019
ffb5199
Update js.html
NamSuJi Jul 26, 2019
fa8bfc7
Create _header.css
NamSuJi Jul 26, 2019
3698273
Update header2.html
NamSuJi Jul 26, 2019
1141d03
Update header2.html
NamSuJi Jul 26, 2019
73ed0a0
Update default.html
NamSuJi Jul 26, 2019
3c164d4
Update default.html
NamSuJi Jul 26, 2019
302d03f
Update default.html
NamSuJi Jul 26, 2019
5490d8f
Update header2.html
NamSuJi Jul 26, 2019
430f3fa
Update _header.css
NamSuJi Jul 26, 2019
0622cde
Update default.html
NamSuJi Jul 26, 2019
21593d0
Update header2.html
NamSuJi Jul 26, 2019
ee9016d
Update header2.html
NamSuJi Jul 26, 2019
0f523e5
Update header2.html
NamSuJi Jul 26, 2019
22cfb5b
Update _config.yml
NamSuJi Jul 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# ----------------------- #
# Main Configs #
# ----------------------- #

url: http://yoursite.com
title: Your Awesome Site
email: your-email@domain.com
author: Your Name
baseurl:
url: http://namsuji.github.io/test
title: For Web Programmer
email: 01928abcd@naver.com
author: Nam
description: > # "Write an awesome description for your new site here.
You can edit this line in _config.yml. It will appear in your document
head meta (for Google search results) and in your feed.xml site
Expand All @@ -20,13 +20,17 @@ markdown: kramdown
permalink: pretty

# ----------------------- #
# 3rd Party Settings #
# 2nd Party Settings #
# ----------------------- #

social:
- title: twitter
url: https://twitter.com/SBootstrap
- title: github
url: https://github.com/IronSummitMedia/startbootstrap
- title: linkedin
url:
url: https://github.com/NamSuJi
- title: Naver
url: https://blog.naver.com/01928abcd

# ----------------------- #
# category & tag #
# ----------------------- #
category_dir: category/
tag_dir: tag/
18 changes: 18 additions & 0 deletions _includes/category.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: default
---
<ul class="posts-list">

{%assign category = page.category | default: page.title %}
{% for post in site.categories[category] %}

<li>
<h3>
<a href="{{site.baseurl}}{{post.url}}">
{{post.title}}
</a>
<small>{{post.date|date_to_string}}</small>
<h3>
</li>
{%endfor %}
</ul>
14 changes: 14 additions & 0 deletions _includes/header2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<header>
<div class="menubar">
<ul class>
<li><a href="#about">About</a></li>
<li><a href="/">Category</a>
<ul>
<li><a href="/category/Github">Github</a></li>
<li><a href="/category/Java">Java</a></li>
<li><a href="/category/Python">Python</a></li>
</ul>
</li>
</ul>
</div>
</header>
3 changes: 3 additions & 0 deletions _includes/js.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@

<!-- Custom Theme JavaScript -->
<script src="js/landing-page.js"></script>

<!-- Custom Header2 -->
<script src="js/_header.js"></script>
67 changes: 15 additions & 52 deletions _includes/page_content.html
Original file line number Diff line number Diff line change
@@ -1,52 +1,15 @@
<section id="services">
<!-- Page Content -->
{% for post in site.posts reversed %}
{% capture thecycle %}{% cycle 'odd', 'even' %}{% endcapture %}
{% if thecycle == 'odd' %}
<div class="content-section-a">

<div class="container">

<div class="row">
<div class="col-lg-5 col-sm-6">
<hr class="section-heading-spacer">
<div class="clearfix"></div>
<h2 class="section-heading">{{ post.title }}</h2>
<div class="lead">{{ post.content }}</div>
</div>
<div class="col-lg-5 col-lg-offset-2 col-sm-6">
<img class="img-responsive" src="img/services/{{ post.img }}" alt="">
</div>
</div>

</div>
<!-- /.container -->

</div>
<!-- /.content-section-a -->
{% else %}

<div class="content-section-b">

<div class="container">

<div class="row">
<div class="col-lg-5 col-lg-offset-1 col-sm-push-6 col-sm-6">
<hr class="section-heading-spacer">
<div class="clearfix"></div>
<h2 class="section-heading">{{ post.title }}</h2>
<div class="lead">{{ post.content }}</div>
</div>
<div class="col-lg-5 col-sm-pull-6 col-sm-6">
<img class="img-responsive" src="img/services/{{ post.img }}" alt="">
</div>
</div>

</div>
<!-- /.container -->

</div>
<!-- /.content-section-b -->
{% endif %}
{% endfor %}
</section>
<header class="site-category">
<ul>

{% assign pages_list = site.pages %}
{% for node in pages_list %}
{% if node.title != null %}
{% if node.layout == "category" %}
<li><a class="category-link {% if page.url == node.url %} active{% endif %}"
href="{{ site.baseurl }}{{ node.url }}">{{ node.title }}</a></li>
{% endif %}
{% endif %}
{% endfor %}

</ul>
</header>
3 changes: 1 addition & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
{% include head.html %}

<body>
{% include header.html %}
{% include header2.html %}
{% include about.html %}
{% include page_content.html %}
{% include contact.html %}
{% include footer.html %}
{% include js.html %}
Expand Down
5 changes: 5 additions & 0 deletions category/Github.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: category
title: /category/Github
permalin: '/category/Github'
---
5 changes: 5 additions & 0 deletions category/Java.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: category
title: /category/Java
permalin: '/category/Java'
---
5 changes: 5 additions & 0 deletions category/Python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: category
title: /category/Python
permalin: '/category/Python'
---
92 changes: 92 additions & 0 deletions css/_header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.menubar{
border:none;
border:0px;
margin:0px;
padding:0px;
font: 67.5% "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif;
font-size:14px;
font-weight:bold;
}

.menubar ul{
background: rgb(109,109,109);
height:50px;
list-style:none;
margin:0;
padding:0;
}

.menubar li{
float:left;
padding:0px;
}

.menubar li a{
background: rgb(109,109,109);
color:#cccccc;
display:block;
font-weight:normal;
line-height:50px;
margin:0px;
padding:0px 25px;
text-align:center;
text-decoration:none;
}

.menubar li a:hover, .menubar ul li:hover a{
background: rgb(71,71,71);
color:#FFFFFF;
text-decoration:none;
}

.menubar li ul{
background: rgb(109,109,109);
display:none; /* 평상시에는 드랍메뉴가 안보이게 하기 */
height:auto;
padding:0px;
margin:0px;
border:0px;
position:absolute;
width:200px;
z-index:200;
/*top:1em;
/*left:0;*/
}

.menubar li:hover ul{
display:block; /* 마우스 커서 올리면 드랍메뉴 보이게 하기 */
}

.menubar li li {
background: rgb(109,109,109);
display:block;
float:none;
margin:0px;
padding:0px;
width:200px;
}

.menubar li:hover li a{
background:none;
}

.menubar li ul a{
display:block;
height:50px;
font-size:12px;
font-style:normal;
margin:0px;
padding:0px 10px 0px 15px;
text-align:left;
}

.menubar li ul a:hover, .menubar li ul li:hover a{
background: rgb(71,71,71);
border:0px;
color:#ffffff;
text-decoration:none;
}

.menubar p{
clear:left;
}
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: default
title: Landing Page
subTitle: A Template by Start Bootstrap
---
title: For Web Programmer
subTitle: Welcome my site
---