diff --git a/_includes/share.html b/_includes/share.html index 9e97b33..50e59a4 100644 --- a/_includes/share.html +++ b/_includes/share.html @@ -1,9 +1,9 @@ {% capture url %}{{ site.url }}{{ include.url }}{% endcapture %} {% unless include.share.url == '%url' %} - {% assign url = url | cgi_escape %} + {% assign url = url | default: '' | cgi_escape %} {% endunless %} -{% assign title = include.title | cgi_escape %} +{% assign title = include.title | default: '' | cgi_escape %} {% assign description = include.description | default: '' | cgi_escape %}
-

{{ page.title | escape }}

+

{{ page.title | default: '' | escape }}

{%- if page.description -%} -

{{ page.description | escape }}

+

{{ page.description | default: '' | escape }}

{%- endif -%} {%- if page.image.path -%} @@ -29,7 +29,7 @@ layout: default • {%- endfor -%}