Fixed formatting and updated CONTRINUTING

This commit is contained in:
Panos Sakkos 2015-11-17 23:56:05 +01:00
parent 512ab17a61
commit a77f6b3b55
9 changed files with 158 additions and 150 deletions

View file

@ -5,3 +5,7 @@ If you want to close the issue:
1. Fork the repository and work on the fix or the feature. Don't forget to add you name in the CONTRIBUTORS file, no matter how small is your fix, even if it's a typo :wink: 1. Fork the repository and work on the fix or the feature. Don't forget to add you name in the CONTRIBUTORS file, no matter how small is your fix, even if it's a typo :wink:
2. Open a Pull Request with commits mentioning which issue are they fixing by adding in their description "Fixes #IssueNumber", in order to auto-resolve the issues after the Pull Request is merged into the master branch 2. Open a Pull Request with commits mentioning which issue are they fixing by adding in their description "Fixes #IssueNumber", in order to auto-resolve the issues after the Pull Request is merged into the master branch
3. Consider joining our [Gitter](https://gitter.im/PanosSakkos/personal-jekyll-theme) channel in order to make our communication easier 3. Consider joining our [Gitter](https://gitter.im/PanosSakkos/personal-jekyll-theme) channel in order to make our communication easier
A few simple rules that have to be followed:
1. No tabs allowed, two spaces should be used instead

View file

@ -3,9 +3,9 @@
<section id="{{ page.section-type }}" class="container content-section text-center"> <section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row"> <div class="row">
<div class="col-lg-10 col-lg-offset-1"> <div class="col-lg-10 col-lg-offset-1">
{{ page.content | markdownify }} {{ page.content | markdownify }}
</div> </div>
</div> </div>
</section> </section>

View file

@ -2,36 +2,36 @@
<!-- Contact Start --> <!-- Contact Start -->
<section id="{{ page.section-type }}" class="container content-section text-center"> <section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row"> <div class="row">
<div class="col-lg-10 col-lg-offset-1"> <div class="col-lg-10 col-lg-offset-1">
{{ page.content | markdownify }} {{ page.content | markdownify }}
{% if site.email %} {% if site.email %}
{% if site.email contains '@' %} {% if site.email contains '@' %}
{% assign newemail = site.email | split: '@' %} {% assign newemail = site.email | split: '@' %}
<p> <p>
<script> <script>
function join_at_email(user, domain){ function join_at_email(user, domain){
return (user && domain)?(user + "@" + domain):""; return (user && domain)?(user + "@" + domain):"";
} }
document.write('<a href="mailto:' document.write('<a href="mailto:'
+ join_at_email( "{{ newemail[0] }}", "{{ newemail[1] }}" ) + join_at_email( "{{ newemail[0] }}", "{{ newemail[1] }}" )
+ '">' + '">'
+ join_at_email( "{{ newemail[0] }}", "{{ newemail[1] }}" ) + join_at_email( "{{ newemail[0] }}", "{{ newemail[1] }}" )
+ '</a>' + '</a>'
); );
</script> </script>
</p> </p>
{% else %} {% else %}
<p><a href="mailto:{{ site.email }}">{{ site.email }}</a></p> <p><a href="mailto:{{ site.email }}">{{ site.email }}</a></p>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% include social-buttons.html %} {% include social-buttons.html %}
</div>
</div> </div>
</div>
</section> </section>
<!-- Contact End --> <!-- Contact End -->

View file

@ -3,7 +3,7 @@
<footer> <footer>
<div class="container text-center"> <div class="container text-center">
<p>Copyright &copy; {{ site.author }} {{ site.time | date: "%Y" }}</p> <p>Copyright &copy; {{ site.author }} {{ site.time | date: "%Y" }}</p>
</div> </div>
</footer> </footer>

View file

@ -2,21 +2,21 @@
<!-- Intro Start --> <!-- Intro Start -->
<header class="intro"> <header class="intro">
<div class="intro-body"> <div class="intro-body">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-md-10 col-md-offset-1"> <div class="col-md-10 col-md-offset-1">
<h1 class="brand-heading">&nbsp;</h1> <h1 class="brand-heading">&nbsp;</h1>
<h1 class="brand-heading">&nbsp;</h1> <h1 class="brand-heading">&nbsp;</h1>
<span class="intro-text">{{ content }}</span> <span class="intro-text">{{ content }}</span>
<h5>&nbsp;</h5> <h5>&nbsp;</h5>
<a href="#{{ site.pages_list['About'] }}" class="page-scroll"> <a href="#{{ site.pages_list['About'] }}" class="page-scroll">
<img class="img-me" src="{{site.baseurl}}{{ site.me-img }}" alt=""> <img class="img-me" src="{{site.baseurl}}{{ site.me-img }}" alt="">
</a> </a>
</div> </div>
</div>
</div> </div>
</div> </div>
</div>
</header> </header>
<!-- Intro End --> <!-- Intro End -->

View file

@ -2,47 +2,50 @@
<!-- Navigation Start --> <!-- Navigation Start -->
<nav class="navbar navbar-custom navbar-fixed-top" role="navigation"> <nav class="navbar navbar-custom navbar-fixed-top" role="navigation">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-collapse">
<i class="fa fa-bars"></i> <i class="fa fa-bars"></i>
</button> </button>
{% if page.section-type == "index" %} {% if page.section-type == "index" %}
<a class="navbar-brand page-scroll" href="#page-top"> <a class="navbar-brand page-scroll" href="#page-top">
{% else %} {% else %}
<a class="navbar-brand page-scroll" href="{{site.baseurl}}/index.html#page-top"> <a class="navbar-brand" href="{{site.baseurl}}/index.html">
{% endif %} {% endif %}
<div>{% if site.black-favicon %}<img src="{{site.baseurl}}{{ site.black-favicon }}" alt=""> {% endif %}{{ site.title }}</div> <div>
</a> {% if site.black-favicon %}<img src="{{site.baseurl}}{{ site.black-favicon }}" alt="">{% endif %}
</div> {{ site.title }}
<!-- Collect the nav links, forms, and other content for toggling --> </div>
<div class="collapse navbar-collapse navbar-right navbar-main-collapse"> </a>
<ul class="nav navbar-nav">
{% if page.section-type == "index" %}
<!-- Scroll to section for each page in index -->
{% for p in site.pages_list %}
<li>
<a class="page-scroll" href="#{{ p[1] }}"> {{ p[0] }}</a>
</li>
{% endfor %}
{% else %}
<!-- Blog, Post, Tag pages-->
{% for p in site.pages_list %}
<li>
{% comment %} If are blog, redirect to index.html of Blog {% endcomment %}
{% if p[1] == "latest-post" %}
<a class="page-scroll" href="{{site.baseurl}}/blog/index.html"> {{ p[0] }}</a>
{% else %}
<a class="page-scroll" href="{{site.baseurl}}/index.html#{{ p[1] }}"> {{ p[0] }}</a>
{% endif %}
</li>
{% endfor %}
{% endif %}
</ul>
</div>
</div> </div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-right navbar-main-collapse">
<ul class="nav navbar-nav">
{% if page.section-type == "index" %}
<!-- Scroll to section for each page in index -->
{% for p in site.pages_list %}
<li>
<a class="page-scroll" href="#{{ p[1] }}"> {{ p[0] }}</a>
</li>
{% endfor %}
{% else %}
<!-- Blog, Post, Tag pages-->
{% for p in site.pages_list %}
<li>
{% comment %} If are blog, redirect to index.html of Blog {% endcomment %}
{% if p[1] == "latest-post" %}
<a class="page-scroll" href="{{site.baseurl}}/blog/index.html"> {{ p[0] }}</a>
{% else %}
<a class="page-scroll" href="{{site.baseurl}}/index.html#{{ p[1] }}"> {{ p[0] }}</a>
{% endif %}
</li>
{% endfor %}
{% endif %}
</ul>
</div>
</div>
</nav> </nav>
<!-- Navigation End --> <!-- Navigation End -->

View file

@ -12,7 +12,7 @@
{% if site.twitter-share %} {% if site.twitter-share %}
<div style="float:left; padding: 0 5px; vertical-align:top"> <div style="float:left; padding: 0 5px; vertical-align:top">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="{{site.url}}{{ site.baseurl}}{{page.url}}" data-text="{{page.title}} {% for tag in page.tags%}#{{ tag }} {% endfor %}"></a> <a href="https://twitter.com/share" class="twitter-share-button" data-url="{{site.url}}{{ site.baseurl}}{{page.url}}" data-text="{{page.title}} {% for tag in page.tags%}#{{ tag }} {% endfor %}"></a>
</div> </div>
{% endif %} {% endif %}
{% if site.reddit-share %} {% if site.reddit-share %}
@ -25,46 +25,47 @@
{% endif %} {% endif %}
{% if site.linkedin-share %} {% if site.linkedin-share %}
<div style="float:left; padding: 0 5px; vertical-align:top; background-color: #0077B5; border-radius:3px"> <div style="float:left; padding: 0 5px; vertical-align:top; background-color: #0077B5; border-radius:3px">
<a style="color: #fff; vertical-align:middle; align: middle;" href="https://www.linkedin.com/cws/share?url={{site.url}}{{site.baseurl}}{{page.url}}&amp;title={{site.title}} | {{page.title}}&amp;lang=en_US" target="_blank"><i class="fa fa-linkedin"></i> | Share</a> <a style="color: #fff; vertical-align:middle; align: middle;" href="https://www.linkedin.com/cws/share?url={{site.url}}{{site.baseurl}}{{page.url}}&amp;title={{site.title}} | {{page.title}}&amp;lang=en_US" target="_blank"><i class="fa fa-linkedin"></i> | Share</a>
</div> </div>
{% endif %} {% endif %}
{% if site.google-plus-share %} {% if site.google-plus-share %}
<div style="float:left; padding: 0 5px; vertical-align:top"> <div style="float:left; padding: 0 5px; vertical-align:top">
<script src="https://apis.google.com/js/platform.js" async defer></script> <script src="https://apis.google.com/js/platform.js" async defer></script>
<div class="g-plus" data-action="share" data-href="{{site.url}}{{ site.baseurl}}{{page.url}}" data-annotation="bubble"></div> <div class="g-plus" data-action="share" data-href="{{site.url}}{{ site.baseurl}}{{page.url}}" data-annotation="bubble"></div>
</div> </div>
{% endif %} {% endif %}
{% if site.vkontakte-share %} {% if site.vkontakte-share %}
<div style="float:left; padding: 0 5px; vertical-align:top; background-color: #0077B5; border-radius:3px"> <div style="float:left; padding: 0 5px; vertical-align:top; background-color: #0077B5; border-radius:3px">
<style type="text/css"> <style type="text/css">
vk {color: #fff;} vk {color: #fff;}
</style> </style>
<script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script> <script type="text/javascript" src="http://vk.com/js/api/share.js?9"; charset="windows-1251"></script>
<script type="text/javascript"> <script type="text/javascript">
document.write(VK.Share.button( document.write(VK.Share.button(
{ {
url: '{{site.url}}{{ site.baseurl}}{{page.url}}', url: '{{site.url}}{{ site.baseurl}}{{page.url}}',
title: '{{site.title}} | {{page.title}}', title: '{{site.title}} | {{page.title}}',
description: '{{page.description}}', description: '{{page.description}}',
}, },
{ {
type: 'custom', type: 'custom',
text: '<vk><i class="fa fa-vk"></i> Share</vk>' text: '<vk><i class="fa fa-vk"></i> Share</vk>'
} }
)); ));
</script> </script>
</div> </div>
{% endif %} {% endif %}
</div>
{% if site.pinterest-share %} {% if site.pinterest-share %}
<div style="float:left; padding: 0 5px; vertical-align:top"> <div style="float:left; padding: 0 5px; vertical-align:top">
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script> <script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js"></script>
<a data-pin-do="buttonPin" href="https://www.pinterest.com/pin/create/button/" data-pin-config="beside" data-pin-description="{{page.description}}" data-pin-url="{{site.url}}{{ site.baseurl}}{{page.url}}"></a> <a data-pin-do="buttonPin" href="https://www.pinterest.com/pin/create/button/" data-pin-config="beside" data-pin-description="{{page.description}}" data-pin-url="{{site.url}}{{ site.baseurl}}{{page.url}}"></a>
</div> </div>
{% endif %} {% endif %}
</div>
<!-- Share Buttons End --> <!-- Share Buttons End -->

View file

@ -2,44 +2,44 @@
<!-- Timeline Start --> <!-- Timeline Start -->
<section id="{{ page.section-type }}" class="container content-section text-center"> <section id="{{ page.section-type }}" class="container content-section text-center">
<div class="row"> <div class="row">
<div class="col-lg-10 col-lg-offset-1"> <div class="col-lg-10 col-lg-offset-1">
{{ page.content | markdownify }} {{ page.content | markdownify }}
<ul class="timeline"> <ul class="timeline">
{% for event in site.events %} {% for event in site.events %}
{% assign loopindex = forloop.index | modulo: 2 %} {% assign loopindex = forloop.index | modulo: 2 %}
{% capture class %} {% capture class %}
{% if loopindex == 0 %} {% if loopindex == 0 %}
timeline-inverted timeline-inverted
{% endif %} {% endif %}
{% endcapture %} {% endcapture %}
<li class="{{ class }}"> <li class="{{ class }}">
<div class="timeline-image"> <div class="timeline-image">
<img class="img-circle img-responsive" src="{{site.baseurl}}{{ event.image }}" alt=""> <img class="img-circle img-responsive" src="{{site.baseurl}}{{ event.image }}" alt="">
</div> </div>
<div class="timeline-panel"> <div class="timeline-panel">
<div class="timeline-heading"> <div class="timeline-heading">
<h4>{{ event.date }}</h4> <h4>{{ event.date }}</h4>
</div>
<div class="timeline-body">
{{ event.description | markdownify }}
</div>
</div>
</li>
{% endfor %}
<li class="timeline-inverted">
<div class="timeline-image">
<img class="img-circle img-responsive" src="{{site.baseurl}}{{ site.career-img }}" alt="">
</div> </div>
</li> <div class="timeline-body">
</ul> {{ event.description | markdownify }}
</div> </div>
</div>
</li>
{% endfor %}
<li class="timeline-inverted">
<div class="timeline-image">
<img class="img-circle img-responsive" src="{{site.baseurl}}{{ site.career-img }}" alt="">
</div>
</li>
</ul>
</div> </div>
</div>
</section> </section>
<!-- Timeline End --> <!-- Timeline End -->

View file

@ -24,7 +24,7 @@
<div class="col-lg-10 col-lg-offset-1"> <div class="col-lg-10 col-lg-offset-1">
{% include social-buttons.html %} {% include social-buttons.html %}
</div></div>
</div> </div>
</div> </div>
</section> </section>