2014-02-07 00:18:00 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
|
|
|
|
2016-01-30 20:32:25 +00:00
|
|
|
<!-- Post Header -->
|
|
|
|
<header class="intro-header" style="background-image: url('{{ site.baseurl }}/{% if page.header-img %}{{ page.header-img }}{% else %}{{ site.header-img }}{% endif %}')">
|
2016-01-30 22:05:28 +00:00
|
|
|
|
|
|
|
<!-- category link -->
|
2016-01-30 22:08:14 +00:00
|
|
|
{% if page.category %}
|
2016-01-30 22:05:28 +00:00
|
|
|
{% for site_category in site.data.categories %}
|
2016-01-30 22:08:14 +00:00
|
|
|
{% if site_category.slug == page.category %}
|
2016-01-30 22:05:28 +00:00
|
|
|
{% assign category = site_category %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if category %}
|
2016-01-30 22:16:33 +00:00
|
|
|
{% capture category_content %} in <b><a href="/meta/category/{{ category.slug }}/">{{ category.name }}</a></b>{% endcapture %}
|
2016-01-30 22:05:28 +00:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% assign category_content = '' %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<!-- tag links -->
|
2016-01-30 22:08:14 +00:00
|
|
|
{% if page.tags.size > 0 %}
|
2016-01-30 22:16:33 +00:00
|
|
|
{% capture tags_content %} tagged with {% endcapture %}
|
2016-01-30 22:08:14 +00:00
|
|
|
{% for post_tag in page.tags %}
|
2016-01-30 22:05:28 +00:00
|
|
|
{% for data_tag in site.data.tags %}
|
|
|
|
{% if data_tag.slug == post_tag %}
|
|
|
|
{% assign tag = data_tag %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if tag %}
|
2016-01-30 22:16:33 +00:00
|
|
|
{% capture tags_content_temp %}{{ tags_content }}<b><a href="/meta/tag/{{ tag.slug }}/">{{ tag.name }}</a></b>{% if forloop.last == false %}, {% endif %}{% endcapture %}
|
2016-01-30 22:05:28 +00:00
|
|
|
{% assign tags_content = tags_content_temp %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
{% assign tags_content = '' %}
|
|
|
|
{% endif %}
|
2016-02-14 19:40:18 +00:00
|
|
|
|
|
|
|
<!-- author links -->
|
|
|
|
{% if page.author %}
|
|
|
|
{% assign author = site.data.authors[page.author] %}
|
|
|
|
{% if author %}
|
|
|
|
<!-- {% capture author_content_temp %}<a href="mailto:{{ author.email }}" target="_blank">{{ author.name }}</a>{% endcapture %} -->
|
|
|
|
<!-- This would be a great place to insert a link to all posts by an author. If I knew how. -->
|
|
|
|
{% capture author_content_temp %}{{ author.name }}{% endcapture %}
|
|
|
|
{% assign author_content = author_content_temp %}
|
2016-02-14 20:14:20 +00:00
|
|
|
{% if author.twitter %}
|
|
|
|
{% capture author_twitter %}<a href="https://twitter.com/{{ author.twitter }}" target="_blank"><i class="fa fa-twitter-square"> </i></a>{% endcapture %}
|
|
|
|
{% endif %}
|
|
|
|
{% if author.linkedin %}
|
|
|
|
{% capture author_linkedin %}<a href="https://www.linkedin.com/in/{{ author.linkedin }}" target="_blank"><i class="fa fa-linkedin-square"> </i></a>{% endcapture %}
|
|
|
|
{% endif %}
|
|
|
|
{% if author.github %}
|
|
|
|
{% capture author_github %}<a href="https://github.com/{{ author.github }}" target="_blank"><i class="fa fa-github-square"> </i></a>{% endcapture %}
|
|
|
|
{% endif %}
|
2016-02-14 19:40:18 +00:00
|
|
|
{% else %}
|
|
|
|
{% assign author_content = page.author %}
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% assign author_content = page.author %}
|
|
|
|
{% endif %}
|
2016-01-30 22:05:28 +00:00
|
|
|
|
2016-01-30 20:32:25 +00:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
|
|
<div class="post-heading">
|
|
|
|
<h1>{{ page.title }}</h1>
|
|
|
|
{% if page.subtitle %}
|
|
|
|
<h2 class="subheading">{{ page.subtitle }}</h2>
|
|
|
|
{% endif %}
|
2016-02-14 20:14:20 +00:00
|
|
|
<span class="meta">Posted by {{ author_content }} {{ author_twitter }}{{ author_github }}{{ author_linkedin }} on {{ page.date | date: "%B %-d, %Y" }} {{ category_content }}{{ tags_content }}</span>
|
2016-01-30 20:32:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
2016-01-04 12:09:07 +00:00
|
|
|
|
2016-01-30 20:32:25 +00:00
|
|
|
<!-- Post Content -->
|
|
|
|
<article>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
2015-11-06 14:55:13 +00:00
|
|
|
|
2016-01-30 20:32:25 +00:00
|
|
|
{{ content }}
|
2016-01-04 12:09:07 +00:00
|
|
|
|
2016-01-30 20:32:25 +00:00
|
|
|
<hr>
|
2016-01-04 12:09:07 +00:00
|
|
|
|
2016-01-30 20:32:25 +00:00
|
|
|
<ul class="pager">
|
|
|
|
{% if page.previous.url %}
|
|
|
|
<li class="previous">
|
|
|
|
<a href="{{ page.previous.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">← Previous Post</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% if page.next.url %}
|
|
|
|
<li class="next">
|
|
|
|
<a href="{{ page.next.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post →</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
</ul>
|
2014-02-07 00:18:00 +00:00
|
|
|
|
2016-01-30 22:08:14 +00:00
|
|
|
<hr>
|
|
|
|
|
2016-01-30 22:05:28 +00:00
|
|
|
{% include disqus.html %}
|
|
|
|
|
2016-01-30 20:32:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-03-01 20:24:26 +00:00
|
|
|
</article>
|
2016-01-30 20:32:25 +00:00
|
|
|
|
|
|
|
<hr>
|