2019-02-07 22:59:44 +01:00
|
|
|
{% include header.html %}
|
|
|
|
|
2019-03-04 20:45:43 +01:00
|
|
|
{% capture post_body %}
|
|
|
|
{% if site.social_media %}
|
2019-03-07 22:06:26 +01:00
|
|
|
{% assign shareable_social_media = '' | split: ',' %}
|
|
|
|
|
2019-03-07 22:27:09 +01:00
|
|
|
{% for account in site.social_media %}
|
|
|
|
{% assign service_shortname = account[0] %}
|
|
|
|
{% assign service = site.data.social_media[service_shortname] %}
|
|
|
|
|
|
|
|
{% if service.share_url_prefix %}
|
2019-03-07 22:06:26 +01:00
|
|
|
{% assign shareable_social_media = shareable_social_media | push: service %}
|
2019-03-07 22:27:09 +01:00
|
|
|
{% endif %}
|
2019-03-07 22:06:26 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% assign total_shareable_services = shareable_social_media | size %}
|
|
|
|
|
|
|
|
{% if total_shareable_services > 0 %}
|
|
|
|
<div class="col-sm-4 col-lg-3 d-flex flex-wrap flex-items-center d-sm-block float-sm-right border rounded-2 bg-white p-3 mb-5 ml-md-5">
|
|
|
|
<h3 class="text-gray-dark mr-3 mr-sm-0">Share</h3>
|
|
|
|
<ul class="d-flex d-sm-block list-style-none">
|
2019-03-07 22:27:09 +01:00
|
|
|
{% for service in shareable_social_media %}
|
2019-03-07 22:06:26 +01:00
|
|
|
<li class="mt-sm-3">
|
2019-03-07 22:27:09 +01:00
|
|
|
<a href="{{ service.share_url_prefix }}{{ page.url | prepend: site.url | prepend: site.baseurl | url_encode }}" title="Share on {{ service.name }}" class="d-flex flex-items-center">
|
2019-03-07 22:06:26 +01:00
|
|
|
<div style="width:32px">{{ service.icon_svg }}</div><span class="d-none d-sm-inline-block text-gray-light">{{ service.name }}</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2019-03-04 20:45:43 +01:00
|
|
|
{% endif %}
|
|
|
|
<div class="article">
|
|
|
|
{{ content }}
|
|
|
|
</div>
|
|
|
|
{% endcapture %}
|
|
|
|
|
2019-02-07 22:59:44 +01:00
|
|
|
{% if site.layout == 'stacked' %}
|
|
|
|
<div class="container-lg py-6 p-responsive text-center">
|
|
|
|
{% include masthead.html metadata=false %}
|
|
|
|
|
|
|
|
<div class="container-md f4 text-left border rounded-2 bg-white p-3 p-sm-5 mt-6">
|
|
|
|
<p class="f5"><a href="/" class="d-flex flex-items-center">{% octicon chevron-left height:16 class:"mr-2 v-align-middle" fill:#0366d6 aria-label:Home %}Home</a></p>
|
|
|
|
<h1 class="f00-light lh-condensed">{{ page.title }}</h1>
|
|
|
|
<p class="{% if site.style == 'dark' %}text-white{% else %}text-gray{% endif %} mb-5">Published {{ page.date | date: "%b %d, %Y"}}</p>
|
2019-03-04 20:45:43 +01:00
|
|
|
{{ post_body }}
|
2019-02-07 22:59:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2019-03-13 05:38:36 +01:00
|
|
|
<div class="d-md-flex min-height-full {% unless site.style == 'dark' %}border-md-bottom{% endunless %}">
|
2019-02-07 22:59:44 +01:00
|
|
|
<div class="flex-self-stretch {% if site.style == 'dark' %}bg-gray-dark{% else %}border-md-right border-gray-light bg-white{% endif %} col-md-5 col-lg-4 col-xl-3 px-4 px-md-6 px-lg-7 py-6">
|
|
|
|
{% include masthead.html metadata=true %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-7 col-lg-8 col-xl-9 px-4 py-6 px-lg-7 border-top border-md-top-0 bg-gray-light" {% if site.style == 'dark' %}style="background-color: #2f363d !important"{% endif %}>
|
|
|
|
<div class="mx-auto" style="max-width: 900px;">
|
|
|
|
<div class="f4 {% if site.style == 'dark' %}text-white{% endif %} mb-6">
|
|
|
|
<div class="f4 {% if site.style == 'dark' %}text-white{% endif %}">
|
2019-03-04 18:22:35 +01:00
|
|
|
<p class="f5"><a href="{{ site.url }}{{ site.baseurl | append:'/' }}" class="d-flex flex-items-center {% if site.style == 'dark' %}text-white{% endif %}">{% octicon chevron-left height:16 class:"mr-2 v-align-middle" fill:{{ icon_color }} aria-label:Home %}Home</a></p>
|
2019-02-07 22:59:44 +01:00
|
|
|
<h1 class="f00-light lh-condensed">{{ page.title }}</h1>
|
|
|
|
<p class="{% if site.style == 'dark' %}text-white{% else %}text-gray{% endif %} mb-5">Published {{ page.date | date: "%b %d, %Y"}}</p>
|
2019-03-04 20:45:43 +01:00
|
|
|
{{ post_body }}
|
2019-02-07 22:59:44 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% include footer.html %}
|