From 07a3a21be47ce59068fcc2bc5af342bf901cc4db Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Sun, 5 May 2019 10:56:27 -0700 Subject: [PATCH] add twitter card support --- _includes/head.html | 51 +++++++++++++++++++++++++++++++-------------- 1 file changed, 35 insertions(+), 16 deletions(-) diff --git a/_includes/head.html b/_includes/head.html index dff34bd..1e9f9d7 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -1,27 +1,46 @@ + + {% capture title %} + {% if page.title %} + {{ page.title }} + {% else %} + Andrew Cassidy + {% endif %} + {% endcapture %} + + {% capture description %} + {% if page.description%} + {{ page.description}} + {% else %} + {{page.content | markdownify | strip_html | truncate: 100}} + {% endif %} + {% endcapture %} + {{site.url}}/images/{{page.path | split: '/' | last | split: '.' | first }}/{{page.image}} + {% capture image %} + + {% if page.title %} {{ page.title }} | {% endif %} Andrew Cassidy - - - {% if page.image %} - + + + + + + + {% if page.image %} + {% endif %} - {% if page.description %} - - {% else %} - + + + + + + {% if page.image %} + {% endif %} {% if page.collection == "posts" %}