diff --git a/_includes/relatedposts.html b/_includes/relatedposts.html new file mode 100644 index 0000000..ec16874 --- /dev/null +++ b/_includes/relatedposts.html @@ -0,0 +1,34 @@ + \ No newline at end of file diff --git a/_includes/twitter-card.html b/_includes/twitter-card.html index f217f56..61028cb 100644 --- a/_includes/twitter-card.html +++ b/_includes/twitter-card.html @@ -22,25 +22,11 @@

{{ include.contents }}

{% if include.image %} - - {% assign prefix = include.image | slice: 0, 4 %} - {% if prefix == "http" %} - {% assign image = include.image %} - {% else %} - {% assign image = include.image | prepend: site.baseurl %} - {% endif %} - - - {% elsif include.video %} - {% assign prefix = include.video | slice: 0, 4 %} - {% if prefix == "http" %} - {% assign video = include.video %} - {% else %} - {% assign video = include.video | prepend: site.baseurl %} - {% endif %} - + + {% else.if include.video %} + {% endif %}