Fix bug when site.twitter is null

This commit is contained in:
Michael Rose 2016-04-14 15:12:04 -04:00
parent 58a59d7d00
commit 92bfc93cc4

View file

@ -52,7 +52,7 @@
<meta property="og:description" content="{{ seo_description }}"> <meta property="og:description" content="{{ seo_description }}">
{% endif %} {% endif %}
{% if site.twitter %} {% if site.twitter.username %}
<meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}"> <meta name="twitter:site" content="@{{ site.twitter.username | replace: "@", "" }}">
<meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}"> <meta name="twitter:title" content="{{ page.title | default: site.title | markdownify | strip_html | strip_newlines | escape_once }}">
<meta name="twitter:description" content="{{ seo_description }}"> <meta name="twitter:description" content="{{ seo_description }}">