Skip to content

Commit

Permalink
Improve About Section
Browse files Browse the repository at this point in the history
 * Move Skills and Timeline to includes.
 * Change extension to markdown file.
  • Loading branch information
yousinix committed Feb 10, 2019
1 parent 96594c0 commit 62e1850
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 50 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permalink: articles/:title
# Author Info
author:
img: https://ssl.gstatic.com/images/branding/product/1x/avatar_square_blue_512dp.png
name: John Doe
email: [email protected]
github: portfolYOU
twitter: portfolYOU
Expand Down
28 changes: 28 additions & 0 deletions _includes/skills.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!-- Programming Skills -->
<div class="row">
<div class="col-lg-6">
<h2 class="mb-3">Programming Skills</h2>
{% for skill in page.programming-skills %}
<div class="skill">
<p>{{ skill.name }}</p>
<div class="skill-bar skill-bar-{{ skill.color }} skill-{{ skill.percentage }} wow animated slideInLeft"
data-wow-delay="{{ forloop.index | divided_by: 20.0 }}">
<span>{{ skill.percentage }}%</span>
</div>
</div>
{% endfor %}
</div>
<!-- Other Skills -->
<div class="col-lg-6">
<h2 class="mb-3">Other Skills</h2>
{% for skill in page.other-skills %}
<div class="skill">
<p>{{ skill.name }}</p>
<div class="skill-bar skill-bar-{{ skill.color }} skill-{{ skill.percentage }} wow animated slideInLeft"
data-wow-delay="{{ forloop.index | divided_by: 20.0 }}">
<span>{{ skill.percentage }}%</span>
</div>
</div>
{% endfor %}
</div>
</div>
15 changes: 15 additions & 0 deletions _includes/timeline.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class="row">
<div class="col mt-3">
<div class="timeline-body">
{% for item in page.timeline %}
<div class="timeline-item">
<div class="content">
<h2>{{ item.title }}</h2>
<h6 class="date">{{ item.from }} — {{ item.to }}</h6>
<p>{{ item.description }}</p>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
11 changes: 11 additions & 0 deletions _layouts/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: default
---

<div class="col-lg-10 mx-auto mt-5 article">

<h1><b>{{ page.title }}</b></h1>

{{ content }}

</div>
56 changes: 6 additions & 50 deletions pages/about.html → pages/about.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: default
layout: about
title: "About Me"
permalink: /about/

# visit https://getbootstrap.com/docs/4.1/utilities/colors/#background-color
Expand Down Expand Up @@ -50,55 +51,10 @@
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

---

<div class="row justify-content-center m-3 mt-5">

<!-- Programming Skills -->
<div class="col-lg-5 m-2">
<h2 class="mb-3">Programming Skills</h2>
{% for skill in page.programming-skills %}
<div class="skill">
<p>{{ skill.name }}</p>
<div class="skill-bar skill-bar-{{ skill.color }} skill-{{ skill.percentage }} wow animated slideInLeft"
data-wow-delay="{{ forloop.index | divided_by: 20.0 }}">
<span>{{ skill.percentage }}%</span>
</div>
</div>
{% endfor %}
</div>

<!-- Other Skills -->
<div class="col-lg-5 m-2">
<h2 class="mb-3">Other Skills</h2>
{% for skill in page.other-skills %}
<div class="skill">
<p>{{ skill.name }}</p>
<div class="skill-bar skill-bar-{{ skill.color }} skill-{{ skill.percentage }} wow animated slideInLeft"
data-wow-delay="{{ forloop.index | divided_by: 20.0 }}">
<span>{{ skill.percentage }}%</span>
</div>
</div>
{% endfor %}
</div>


<!-- TimeLine -->
<div class="col-lg-10 m-2">
<div class="timeline-body">

{% for item in page.timeline %}
<div class="timeline-item">
<div class="content">
<h2>{{ item.title }}</h2>
<h6 class="date">{{ item.from }} — {{ item.to }}</h6>
<p>{{ item.description }}</p>
</div>
</div>
{% endfor %}

</div>
</div>
Hi I am **{{ site.author.name }}**,<br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

</div>
{% include skills.html %}
{% include timeline.html %}

0 comments on commit 62e1850

Please sign in to comment.