Skip to content

Commit

Permalink
move header and links to a seperate file and include from recent posts
Browse files Browse the repository at this point in the history
  • Loading branch information
bijumon committed Jan 25, 2014
1 parent d3b715e commit 8f5ed30
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 40 deletions.
41 changes: 1 addition & 40 deletions source/_includes/asides/recent_posts.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,4 @@
<section id="titles">
<a href="{{ site.url }}" title="{{ site.title }}"><img id="logo" src="/images/logo.png" /></a>
<h1 id="site_title"><a href="{{ site.url }}" title="{{ site.title }}">{{ site.title }}</a></h1>
<h3 id="site_subtitle">{{ site.subtitle }}</h3>
</section>

<section id="menu">
<ul>
<li><i class="fa fa-home fa-lg"></i><a href="{{ site.url }}"> Home </a></li>
<li><i class="fa fa-calendar fa-lg"></i><a href="/blog/archives/"> Archives </a></li>
<li><i class="fa fa-user fa-lg"></i><a href="/about/"> About </a></li>
<li><i class="fa fa-rss fa-lg"></i><a href="/atom.xml"> Feed </a></li>
</ul>
</section>

<section id="social">
{% if site.delicious_user != null %}
<a href="https://delicious.com/{{ site.github_user }}" title="delicious#{{ site.delicious_user}}"><i class="fa fa-bookmark fa-2x"></i></a>
{% endif %}

{% if site.disqus_user != null %}
<a href="https://disqus.com/{{ site.disus_user }}" title="disqus#{{ site.disqus_user}}"><i class="fa fa-comment fa-2x"></i></a>
{% endif %}

{% if site.googleplus_user != null %}
<a href="{{ site.googleplus_profile_url }}" title="g+#{{ site.googleplus_user}}"><i class="fa fa-google-plus fa-2x"></i></a>
{% endif %}

{% if site.github_user != null %}
<a href="https://github.com/{{ site.github_user }}" title="{{ site.github_user}}"><i class="fa fa-github fa-2x"></i></a>
{% endif %}

{% if site.pinboard_user != null %}
<a href="http://pinboard.in/u:{{ site.pinboard_user }}" title="{{ site.pinboard_user}}"><i class="fa fa-thumb-tack fa-2x"></i></a>
{% endif %}

{% if site.twitter_user != null %}
<a href="https://twitter.com/{{ site.github_user }}" title="{{ site.github_user}}"><i class="fa fa-twitter fa-2x"></i></a>
{% endif %}
</section>
{% include asides/sitebar.html %}

<section>
<h1>Recent Posts</h1>
Expand Down
40 changes: 40 additions & 0 deletions source/_includes/asides/sitebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<section id="titles">
<a href="{{ site.url }}" title="{{ site.title }}"><img id="logo" src="/images/logo.png" /></a>
<h1 id="site_title"><a href="{{ site.url }}" title="{{ site.title }}">{{ site.title }}</a></h1>
<h3 id="site_subtitle">{{ site.subtitle }}</h3>
</section>

<section id="menu">
<ul>
<li><i class="fa fa-home fa-lg"></i><a href="{{ site.url }}"> Home </a></li>
<li><i class="fa fa-calendar fa-lg"></i><a href="/blog/archives/"> Archives </a></li>
<li><i class="fa fa-user fa-lg"></i><a href="/about/"> About </a></li>
<li><i class="fa fa-rss fa-lg"></i><a href="/atom.xml"> Feed </a></li>
</ul>
</section>

<section id="social">
{% if site.delicious_user != null %}
<a href="https://delicious.com/{{ site.github_user }}" title="delicious#{{ site.delicious_user}}"><i class="fa fa-bookmark fa-2x"></i></a>
{% endif %}

{% if site.disqus_user != null %}
<a href="https://disqus.com/{{ site.disus_user }}" title="disqus#{{ site.disqus_user}}"><i class="fa fa-comment fa-2x"></i></a>
{% endif %}

{% if site.googleplus_user != null %}
<a href="{{ site.googleplus_profile_url }}" title="g+#{{ site.googleplus_user}}"><i class="fa fa-google-plus fa-2x"></i></a>
{% endif %}

{% if site.github_user != null %}
<a href="https://github.com/{{ site.github_user }}" title="{{ site.github_user}}"><i class="fa fa-github fa-2x"></i></a>
{% endif %}

{% if site.pinboard_user != null %}
<a href="http://pinboard.in/u:{{ site.pinboard_user }}" title="{{ site.pinboard_user}}"><i class="fa fa-thumb-tack fa-2x"></i></a>
{% endif %}

{% if site.twitter_user != null %}
<a href="https://twitter.com/{{ site.github_user }}" title="{{ site.github_user}}"><i class="fa fa-twitter fa-2x"></i></a>
{% endif %}
</section>

0 comments on commit 8f5ed30

Please sign in to comment.