~xdavidwu/xdavidwu.link

0b57806f800eecf8839075d6038c401b8bc3b4f7 — Michael Rose 8 years ago 678fe1b
Replace contains "http" with contains "://"
M _includes/archive-single.html => _includes/archive-single.html +1 -1
@@ 16,7 16,7 @@
      {% if include.type == "grid" and teaser != blank %}
        <div class="archive__item-teaser">
          <img src=
            {% if teaser contains "http" %}
            {% if teaser contains "://" %}
              "{{ teaser }}"
            {% else %}
              "{{ teaser | prepend: "/images/" | prepend: base_path }}"

M _includes/author-profile.html => _includes/author-profile.html +1 -1
@@ 7,7 7,7 @@
<div itemscope itemtype="http://schema.org/Person">

  <div class="author__avatar">
    {% if author.avatar contains "http" %}
    {% if author.avatar contains "://" %}
    	<img src="{{ author.avatar }}" alt="{{ author.name }}">
    {% else %}
    	<img src="{{ author.avatar | prepend: "/images/" | prepend: base_path }}" class="author__avatar" alt="{{ author.name }}">

M _includes/feature_row => _includes/feature_row +2 -2
@@ 10,7 10,7 @@

  {% for f in feature_row %}

    {% if f.url contains "http" %}
    {% if f.url contains "://" %}
      {% capture f_url %}{{ f.url }}{% endcapture %}
    {% else %}
      {% capture f_url %}{{ f.url | prepend: base_path }}{% endcapture %}


@@ 21,7 21,7 @@
        {% if f.image_path %}
          <div class="archive__item-teaser">
            <img src=
              {% if f.image_path contains "http" %}
              {% if f.image_path contains "://" %}
                "{{ f.image_path }}"
              {% else %}
                "{{ f.image_path | prepend: "/images/" | prepend: base_path }}"

M _includes/gallery => _includes/gallery +3 -3
@@ 20,7 20,7 @@
  {% for img in gallery %}
    {% if img.url %}
      <a href=
        {% if img.url contains "http" %}
        {% if img.url contains "://" %}
          "{{ img.url }}"
        {% else %}
          "{{ img.url | prepend: "/images/" | prepend: base_path }}"


@@ 28,7 28,7 @@
        {% if img.title %}title="{{ img.title }}"{% endif %}
      >
        <img src=
          {% if img.image_path contains "http" %}
          {% if img.image_path contains "://" %}
            "{{ img.image_path }}"
          {% else %}
            "{{ img.image_path | prepend: "/images/" | prepend: base_path }}"


@@ 37,7 37,7 @@
      </a>
    {% else %}
      <img src=
        {% if img.image_path contains "http" %}
        {% if img.image_path contains "://" %}
          "{{ img.image_path }}"
        {% else %}
          "{{ img.image_path | prepend: "/images/" | prepend: base_path }}"

M _includes/nav_list => _includes/nav_list +3 -5
@@ 8,7 8,7 @@
      <li>
        {% if nav.url %}
          {% comment %}internal/external URL check{% endcomment %}
          {% if nav.url contains "http" %}
          {% if nav.url contains "://" %}
            {% assign domain = "" %}
          {% else %}
            {% assign domain = base_path %}


@@ 23,7 23,7 @@
        <ul>
          {% for child in nav.children %}
            {% comment %}internal/external URL check{% endcomment %}
            {% if child.url contains "http" %}
            {% if child.url contains "://" %}
              {% assign domain = "" %}
            {% else %}
              {% assign domain = base_path %}


@@ 43,6 43,4 @@
      </li>
    {% endfor %}
  </ul>
</nav>


</nav>
\ No newline at end of file

M _includes/page__hero.html => _includes/page__hero.html +4 -4
@@ 1,18 1,18 @@
{% include base_path %}

{% if page.header.image contains "http" %}
{% if page.header.image contains "://" %}
  {% capture img_path %}{{ page.header.image }}{% endcapture %}
{% else %}
  {% capture img_path %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endcapture %}
{% endif %}

{% if page.header.cta_url contains "http" %}
{% if page.header.cta_url contains "://" %}
  {% capture cta_path %}{{ page.header.cta_url }}{% endcapture %}
{% else %}
  {% capture cta_path %}{{ page.header.cta_url | prepend: base_path }}{% endcapture %}
{% endif %}

{% if page.header.overlay_image contains "http" %}
{% if page.header.overlay_image contains "://" %}
  {% capture overlay_img_path %}{{ page.header.overlay_image }}{% endcapture %}
{% elsif page.header.overlay_image %}
  {% capture overlay_img_path %}{{ page.header.overlay_image | prepend: "/images/" | prepend: base_path }}{% endcapture %}


@@ 52,4 52,4 @@
  {% if page.header.caption %}
    <span class="page__hero-caption">{{ page.header.caption | markdownify | remove: "<p>" | remove: "</p>" }}</span>
  {% endif %}
</div>
</div>
\ No newline at end of file

M _includes/seo.html => _includes/seo.html +2 -2
@@ 60,7 60,7 @@

  {% if page.header.image %}
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
    <meta name="twitter:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
  {% else %}
    <meta name="twitter:card" content="summary">
    {% if site.og_image %}


@@ 84,7 84,7 @@
{% endif %}

{% if page.header.image %}
  <meta property="og:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
  <meta property="og:image" content="{% if page.header.image contains "://" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
{% endif %}

{% if page.date %}

M _includes/sidebar.html => _includes/sidebar.html +1 -1
@@ 7,7 7,7 @@
    {% for s in page.sidebar %}
      {% if s.image %}
        <img src=
        {% if s.image contains "http" %}
        {% if s.image contains "://" %}
          "{{ s.image }}"
        {% else %}
          "{{ s.image | prepend: "/images/" | prepend: base_path }}"