Fix bug when site.twitter is null
This commit is contained in:
parent
58a59d7d00
commit
92bfc93cc4
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@
|
|||
<meta property="og:description" content="{{ seo_description }}">
|
||||
{% endif %}
|
||||
|
||||
{% if site.twitter %}
|
||||
{% if site.twitter.username %}
|
||||
<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:description" content="{{ seo_description }}">
|
||||
|
|
Loading…
Reference in a new issue