{% strip %}

{% assign css_version = 201404221913 %}
{% assign js_version = 201404221946 %}

{% assign url = page.url | remove : '/index.html' | append : '/' | replace: '//', '/' %}

{% assign type = 'page' %}
{% if url contains '/blog/' and url != '/blog/' %}
  {% assign type = 'post' %}
{% elsif url contains '/work/' and url != '/work/' %}
  {% assign type = 'case-study' %}
{% endif %}

{% assign description = site.description %}
{% if type == 'post' %}
  {% assign description = page.excerpt | strip_html | strip_newlines %}
{% elsif type == 'case-study' %}
  {% assign description = page.introduction %}
{% elsif page.description != nil %}
  {% assign description = page.description %}
{% endif %}

{% if page.share_image == nil %}
  {% assign share_image = site.url | prepend: site.url_protocol | append: '/share.png' %}
{% else %}
  {% if page.share_image contains 'http://' or page.share_image contains 'https://' %}
    {% assign share_image = page.share_image %}
  {% else %}
    {% assign share_image = url | prepend: '/assets/images' | prepend: site.url | prepend: site.url_protocol | append: page.share_image %}
  {% endif %}
{% endif %}

{% endstrip %}
{% strip %}

{% assign css_version = 201504271351 %}
{% assign js_version = 201504271332 %}

{% assign url = page.url | remove : '/index.html' | append : '/' | replace: '//', '/' %}

{% assign type = 'page' %}
{% if url contains '/blog/' and url != '/blog/' %}
  {% assign type = 'post' %}
{% elsif url contains '/work/' and url != '/work/' %}
  {% assign type = 'case-study' %}
{% endif %}

{% assign description = site.description %}
{% if type == 'post' %}
  {% assign description = page.excerpt | strip_html | strip_newlines %}
{% elsif type == 'case-study' %}
  {% assign description = page.introduction %}
{% elsif page.description != nil %}
  {% assign description = page.description %}
{% endif %}

{% if page.share_image == nil %}
  {% assign share_image = site.url | prepend: site.url_protocol | append: '/share.png' %}
{% else %}
  {% if page.share_image contains 'http://' or page.share_image contains 'https://' %}
    {% assign share_image = page.share_image %}
  {% else %}
    {% assign share_image = url | prepend: '/assets/images' | prepend: site.url | prepend: site.url_protocol | append: page.share_image %}
  {% endif %}
{% endif %}

{% endstrip %}
Bump CSS and JS versions.
Bump CSS and JS versions.
